Open backup1-technicise opened 7 years ago
The only method that worked for me is the one described here (I am running ubuntu 14.04). For the sake of clarity, these are the steps I followed:
1. sudo vim /etc/mysql/my.cnf
2. Add the following lines at the end:
[mysqld]
skip-grant-tables
3. sudo service mysql restart
4. mysql -u root
5. UPDATE mysql.user set password = PASSWORD('your_new_password') where user = 'root' and host = 'localhost';
6. exit
7. Remove the lines added in step 2 if you want to keep your security standards.
8. 4. mysql -u root -p
MySQL 5.6 installation
MySQL root password
Run MySQL
Create table EMP_INFO under employee_DB
Insert values into table EMP_INFO