Ubuntu8.04 has just installed mysqlsudoapt-getinstallmysql. The installation is successful. You must enter the password and password at the end of the installation.
Ubuntu 8.04 has just installed mysqlsudo apt-get install mysql. After installation, you must enter the password and OKmysql-uroot-p.
Ubuntu 8.04 has just installed mysql
Sudo apt-get install mysql
The installation is successful. You must enter the password and OK for the installation.
Mysql-uroot-p
Enter the password.
An error occurred!
ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: YSE)
Ask a friend, he said that the initial password is empty, but I named the password.
Leave the password Blank
Or error!
ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: NO)
Change the password!
#/Etc/init. d/mysql stop
# Mysqld_safe -- user = mysql -- skip-grant-tables -- skip-networking &
# Mysql-u root mysql
Mysql> UPDATE user SET Password = PASSWORD ('newpassword') where USER = 'root ';
Mysql> flush privileges;
Mysql> quit
#/Etc/init. d/mysqld restart
# Mysql-uroot-p
Enter password:
Mysql>
Done!