mysql-error-1045

How to reset mysql root password?

独自空忆成欢 提交于 2019-11-26 03:26:58
问题 I have a little problem with my phpmyadmin, in fact I accidentally delete multiple user accounts. Since it is impossible to connect without the error: # 1045 - Access denied for user \'root\' @ \'localhost\' (using password: NO) I have search a little on the net before, and even the technic: UPDATE mysql.user SET Password = PASSWORD (\'\') WHERE User = \'root\'; FLUSH PRIVILEGES; does not work, or I didn\'t understood how it worked. I\'m on FreeBSD 8.1, my version of PhpMyadmin is 2.11. Thank

Access denied for user 'test'@'localhost' (using password: YES) except root user

血红的双手。 提交于 2019-11-26 01:58:29
问题 I am facing problem with mysql non root/admin user, I am following the below steps for creating user and its privileges, correct me if i am doing wrong, i am installing mysql on RHEL 5.7 64bit , packages are mentioned below, once i done the rpm install we are creating mysql db using mysql_install_db , then starting the mysql service then using mysql_upgrade also we are doing to the server. After this process i can login as root but with a non-root user I am not able to log into the server:

brew install mysql on macOS

混江龙づ霸主 提交于 2019-11-26 01:55:28
问题 I\'m trying to setup up MySQL on mac os 10.6 using Homebrew by brew install mysql 5.1.52 . Everything goes well and I am also successful with the mysql_install_db . However when I try to connect to the server using: /usr/local/Cellar/mysql/5.1.52/bin/mysqladmin -u root password \'mypass\' I get: /usr/local/Cellar/mysql/5.1.52/bin/mysqladmin: connect to server at \'localhost\' failed error: \'Access denied for user \'root\'@\'localhost\' (using password: NO)\' I\'ve tried to access mysqladmin

Access denied for user 'root@localhost' (using password:NO)

久未见 提交于 2019-11-26 01:35:48
问题 I\'m new to MySQL, I\'m trying to run WordPress in my Windows desktop and it needs MySQL. I install everything with Web Platform Installer which is provided by Microsoft. I never set a root password for MySQL and in the final step of installing WordPress, it asks for a MySQL server password. What is the default password for root (if there is one) and how to change it? I tried: mysql -u root password \'123\' But it shows me: Access denied for user \'root@localhost\' (using password:NO) After

MySQL - ERROR 1045 - Access denied

筅森魡賤 提交于 2019-11-26 01:14:37
问题 In some way I have managed to get this error when I try to access into MySQL via the command line: [root@localhost ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user \'root\'@\'localhost\' (using password: YES) I have tried resetting the password without any luck using this HowTo. I have uninstalled mysql completley and reinstalled but I still get asked for a password. I have no idea why this is the case! Can someone please help me get a default install of MySQL.

Access denied for user 'root@localhost' (using password:NO)

有些话、适合烂在心里 提交于 2019-11-25 19:06:33
I'm new to MySQL, I'm trying to run WordPress in my Windows desktop and it needs MySQL. I install everything with Web Platform Installer which is provided by Microsoft. I never set a root password for MySQL and in the final step of installing WordPress, it asks for a MySQL server password. What is the default password for root (if there is one) and how to change it? I tried: mysql -u root password '123' But it shows me: Access denied for user 'root@localhost' (using password:NO) After this I try: mysql -u root -p However, it asks for a password which I don't have. Update : as Bozho suggested,