i know this isnt an mysql forum but.. on my 1.2.22 cacti server , on windows.. im trying to import a .sql file into the cacti database..
i am getting
C:\Program Files\MySQL\MySQL Server 5.7\bin>mysql -u cactiuser -p cacti < ent.sql
Enter password: **********
ERROR 1045 (28000): Access denied for user 'cactiuser'@'localhost' (using password: YES)
i get this on cacti user or ROOT.. i cant login to mysql using any mysql tools.. anyone else see this and know a way to fix it without uninstalling and reinstalling mysql?
mysql access denied
Moderators: Developers, Moderators
Re: mysql access denied
Did you set a root password in MySQL? If so, use that account. If you did not record/set the root password. It's easier to just start over.
Before history, there was a paradise, now dust.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: mysql access denied
That's the way to do it. Keep it in a lock box.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: mysql access denied
fyi finally fixed this.
had to make a text file in my c drive called mysql-init.txt
in that file is ALTER USER 'root'@'localhost' IDENTIFIED BY 'somenewpassword;
then stopped mysql service
open cmd as admin
ran "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --init-file=C:\\mysql-init.txt
it will just stay up there, wont give you a response.. thats ok.
i opened mysql workbench, used my new pw.. set my root user to have all rights, then closed out of mysql workbench.
i killed that process i spawed with that command.
restarted the service.
voila.. i could log into mysql workbench and cmd line as root and create a seperate user to use and\or use root for what is needed..
hope this helps, remember to delete that mysql-init.txt file afterwards
had to make a text file in my c drive called mysql-init.txt
in that file is ALTER USER 'root'@'localhost' IDENTIFIED BY 'somenewpassword;
then stopped mysql service
open cmd as admin
ran "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" --init-file=C:\\mysql-init.txt
it will just stay up there, wont give you a response.. thats ok.
i opened mysql workbench, used my new pw.. set my root user to have all rights, then closed out of mysql workbench.
i killed that process i spawed with that command.
restarted the service.
voila.. i could log into mysql workbench and cmd line as root and create a seperate user to use and\or use root for what is needed..
hope this helps, remember to delete that mysql-init.txt file afterwards
Who is online
Users browsing this forum: No registered users and 0 guests