MySQL Start - Stop problem

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
xtian
New here
Posts: 9
Joined: Fri Sep 07, 2007 7:51 pm
Location: Sweden

MySQL Start - Stop problem

Post by xtian »

Hello!

I have a TS-109 with firmware 1.1.1 Build 0911T (same problem with 1.1.1 Build 0831T).

When I try to disable MySQL I get the following error in the Event log:

Error [MySQL Server] stopped failed.

I also can't login using phpMyAdmin. I do not use any application that use MySQL yet so I don't know if the MySQL-server is started.

I was able to start and stop MySQL and login using phpMyAdmin before upgrading firmware to 1.1.1 Build 0831T.

I've tried to restart TS-109 and also tried to reset root password for MySQL.

Any suggestions?
User avatar
kent
QNAP Staff
Posts: 198
Joined: Fri Aug 31, 2007 5:21 pm
Location: Taipei, Taiwan

Post by kent »

If you can use ssh/telnet login, please help to check belows
1. run command "/etc/init.d/mysqld.sh restart"
2. run command "ps", check if process "mysqld" & "mysqld_safe" are alive
Pleae let me know the results, thanks.
I am Kent. Nice to meet you!
xtian
New here
Posts: 9
Joined: Fri Sep 07, 2007 7:51 pm
Location: Sweden

Post by xtian »

Here are the results:

1. run command "/etc/init.d/mysqld.sh restart"

Shutting down MySQL.. SUCCESS!
Starting MySQL. SUCCESS!

2. run command "ps", check if process "mysqld" & "mysqld_safe" are alive

9800 admin 1048 S /bin/sh /usr/local/mysql/bin/mysql_safe --datadir=/u
9834 admin 14504 S /usr/local/mysql/libexec/mysqld --basedir=/usr/local/

Still can't login in phpMyAdmin, error:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

Tried to reset root password from web-interface.

If I uncheck the checkbox for "Enable MySQL Server" and press the button "Apply" the page reload but the checkbox are still checked. This is the error in eventlog:

Error [MySQL Server] stopped failed.
User avatar
kent
QNAP Staff
Posts: 198
Joined: Fri Aug 31, 2007 5:21 pm
Location: Taipei, Taiwan

Post by kent »

It seems MySQL can normally launch success in your TS server.
I think maybe the database file was broken.
My suggestion is:
Go to web administration, in "Network setting"->"MySQL Server" page
click checkbox "Database maintenance", then execute "reset root password" and "Re-initialize database"

Please let me know the final result, thanks.
I am Kent. Nice to meet you!
xtian
New here
Posts: 9
Joined: Fri Sep 07, 2007 7:51 pm
Location: Sweden

Post by xtian »

OK, tried that.

Still can't login in phpMyAdmin with root - admin, error:

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

Still can't disable MySQL server, error in eventlog:

Error [MySQL Server] stopped failed.
User avatar
kent
QNAP Staff
Posts: 198
Joined: Fri Aug 31, 2007 5:21 pm
Location: Taipei, Taiwan

Post by kent »

Can you PM me your IP and admin's password for checking?
I am Kent. Nice to meet you!
xtian
New here
Posts: 9
Joined: Fri Sep 07, 2007 7:51 pm
Location: Sweden

Post by xtian »

Ok, send you a PM.
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”