[solved] Sql error
Moderators: Developers, Moderators
[solved] Sql error
Why do I always get errors that are not addressed in help or forum?? This is first login attempt after using BSOD2600's fabulous installer on a fresh Win7 Pro VM I am afraid to run the command as it appears it will change my current username/password as generated in install log. I am Sql illiterate!!
Error
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:
mysql -u cactiuser -p cacti < cacti.sql
This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
Error
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:
mysql -u cactiuser -p cacti < cacti.sql
This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.
Re: Sql error
More context and info around the error(s) would be helpful. Please attach the installer log file.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Sql error
I'm not sure I understand what "context" you are looking for, Sir. After I ran your installer on a freshly created Hyper-v VM with Win7 Sp1 x64 Pro I tried to open the URL http://localhost/cacti I was presented with this message. Here is the installer log....................
- Attachments
-
- cacti-installer.txt
- (99.92 KiB) Downloaded 146 times
Re: Sql error
It would appear the installer completed successfully.
Did you reboot the server after it completed?
please post a screenshot of the error(s).
Did you reboot the server after it completed?
please post a screenshot of the error(s).
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Sql error
Yes Sir, I absolutely rebooted. Here is the screenshot, it appears it is asking me to associate a username/password with the indicated Db, no?? Can I simply replace the real username/password as generated by the installer and run the command??
- Attachments
-
- ScreenHunter_01 Oct. 07 13.26.jpg (85.56 KiB) Viewed 2613 times
Re: Sql error
This is really weird.
The following 3 lines indicate the installer should've created the cacti database:
Does C:\ProgramData\MySQL\MySQL Server 5.6\data\Cacti\ exist?
Mind attaching the C:\ProgramData\MySQL\MySQL Server 5.5\data\*.err file(s)?
Or what about rolling back the VM to before Cacti and trying again?
The following 3 lines indicate the installer should've created the cacti database:
Code: Select all
Installing Cacti DB
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Mind attaching the C:\ProgramData\MySQL\MySQL Server 5.5\data\*.err file(s)?
Or what about rolling back the VM to before Cacti and trying again?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Sql error
REALLY appreciate your help on this. Like I said "why do I always get errors..............." The Db is absolutely there in the correct directory. Attaching the files and will wait for your reply but if needed I will certainly just build another VM as I didn't snapshot it.
Re: Sql error
no attachment...
anyways, you should be able to run the cacti uninstaller, reboot. then delete the folder C:\ProgramData\MySQL\MySQL Server 5.6\ so the old configs are not used.
anyways, you should be able to run the cacti uninstaller, reboot. then delete the folder C:\ProgramData\MySQL\MySQL Server 5.6\ so the old configs are not used.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Sql error
Sorry, missed the 2 step process this time, here it is for reference. I HAVE had to use your uninstaller before on Server 2012 and it is excellent. I probably did some cleaning in the registry just for good measure but don't recall. MySQL seems pretty stubborn about leaving.................
- Attachments
-
- MONITOR.txt
- (49.99 KiB) Downloaded 159 times
Re: Sql error
"This is really weird.
The following 3 lines indicate the installer should've created the cacti database:"
I just LOVE that quote!! IF one of the major engineers on this site thinks so what do you suppose a dweeb thinks?? So, anyway, that got things sorted out. The un-installer left behind the stuff you pointed out at "Program Data" but after I deleted that without tickling the registry everything went as planned. I'm not graphing just yet but we can at least log into the system!!
THANKS, again!!
The following 3 lines indicate the installer should've created the cacti database:"
I just LOVE that quote!! IF one of the major engineers on this site thinks so what do you suppose a dweeb thinks?? So, anyway, that got things sorted out. The un-installer left behind the stuff you pointed out at "Program Data" but after I deleted that without tickling the registry everything went as planned. I'm not graphing just yet but we can at least log into the system!!
THANKS, again!!
Re: Sql error
glad to hear it's now working.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Who is online
Users browsing this forum: No registered users and 3 guests