You are not logged in.
After today's upgrades, mysql isn't starting.
pearson ~ $ sudo /etc/rc.d/mysqld restart
:: Stopping MySQL [FAIL]
:: Starting MySQL [FAIL]
pearson ~ $
pearson ~ $ cat /var/log/mysqld.log
pearson ~ $
pearson ~ $ cat /var/log/pacman.log
...
[2009-01-23 14:41] synchronizing package lists
[2009-01-23 14:41] starting full system upgrade
[2009-01-23 14:42] starting full system upgrade
[2009-01-23 14:43] starting full system upgrade
[2009-01-23 14:53] upgraded asciidoc (8.3.1-1 -> 8.3.4-1)
[2009-01-23 14:53] upgraded initscripts (2008.09-2 -> 2009.01-1)
[2009-01-23 14:53] upgraded libtorrent-rasterbar (0.14-1 -> 0.14.1-1)
[2009-01-23 14:53] upgraded mkinitcpio (0.5.21-1 -> 0.5.23-1)
[2009-01-23 14:53] upgraded mlocate (0.21-1 -> 0.21.1-1)
[2009-01-23 14:53] upgraded mysql (5.0.75-1 -> 5.0.75-2)
pearson ~ $
So, I'm guessing the mysql update did something bad, but I can't seem to find any information about what it is. Is there any other place I can look for information, so I can either fix it or file a bugreport?
Last edited by Xiong Chiamiov (2009-01-29 03:33:13)
Offline
After today's upgrades, mysql isn't starting.
So, I'm guessing the mysql update did something bad, but I can't seem to find any information about what it is. Is there any other place I can look for information, so I can either fix it or file a bugreport?
Same problem
Offline
Same problem here. I'm looking for a solution. Will post as soon as I find something.
If you have a workaround please share.
Offline
You can start mysqld with
sudo /usr/bin/mysqld_safe --datadir=/var/lib/mysql
as a workaround.
Last edited by Vieira (2009-01-25 00:27:22)
Offline
Using this version of the file /etc/rc.d/mysqld instead of the latest one solves the problem. Also see the differences that the new revision introduces which brokes the script.
A bug report has been filled.
Last edited by Vieira (2009-01-25 00:55:55)
Offline
Hi Vieira,
Thanks for your great help. The safe mode start seems to work for me. However, the alternative script gives an error:
[root@ringmar ~]# /etc/rc.d/mysqld start
-bash: /etc/rc.d/mysqld: Permission denied
I guess I need to set some permissions somewhere. Any idea?
Happy New Year from Taiwan,
Erik
Offline
Hi Vieira,
Thanks for your great help. The safe mode start seems to work for me. However, the alternative script gives an error:
[root@ringmar ~]# /etc/rc.d/mysqld start
-bash: /etc/rc.d/mysqld: Permission deniedI guess I need to set some permissions somewhere. Any idea?
Happy New Year from Taiwan,
Erik
You have to be root to start or stop daemons:
sudo /etc/rc.d/mysqld start
Offline
Hi Xiong,
OK, now I'm revealing myself as a real newbie: my sudo command doesn't work.
[root@ringmar ~]# sudo /etc/rc.d/mysqld start
-bash: sudo: command not found
I just moved to a Archlinux server from my old Ubuntu one. I never had this issue there. I logged in as root (I though). What should I do?
Erik
Offline
I can help you with that one.
Log in as root (or use the command "su root" to switch to root) and run "pacman -S sudo". You need to install sudo before it will work
As for this thread, I also am having the mysql problems. I will use Vieira's solution for now while waiting for a fix.
Offline
@linreigu
i hope you have installed sudo.
[root@ringmar ~]# sudo /etc/rc.d/mysqld start
But it seems you are already root, then why do you need sudo?
Offline
Hi guys,
Apologies. I didn't mean to hijack this thread with my sudo talk. I have now installed sudo and it seems to work.
yours always,
Offline
I've been having problems with mysql as well. How can I get the newer version mentioned in the bug report?
Offline
pacman -Syu
If your mirror doesn't have the revision 3 package yet, download directly from ftp://ftp.archlinux.org/ in the extra directory and use pacman -U to install it.
Offline
Hey thanks. I'll edit this in a bit when I find out if it works for me.
Success! Thanks for the help
Last edited by tomauty (2009-01-27 00:40:06)
Offline
pacman -Syu
If your mirror doesn't have the revision 3 package yet, download directly from ftp://ftp.archlinux.org/ in the extra directory and use pacman -U to install it.
I just upgraded to rev 3, yet it refuses to start from /etc/rc.d/mysql start.
But this works /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql
Offline
Ranguvar wrote:pacman -Syu
If your mirror doesn't have the revision 3 package yet, download directly from ftp://ftp.archlinux.org/ in the extra directory and use pacman -U to install it.
I just upgraded to rev 3, yet it refuses to start from /etc/rc.d/mysql start.
But this works /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql
Yeah, I thought it was working, and it seems still broken to me. There's another person in the bugreport saying they're still having problems as well. I'd suggest posting there if you have any useful information, or perhaps just to let them know it's still not working.
Offline
I think that I got it figured out why mysqld wasn't starting. You have to add the following lines to your /etc/my.cnf file:
user = mysql
basedir = /usr/
datadir = /var/lib/mysql
Also check the permissions of /var/lib/mysql. I had to play around with those as well. I set 777 recursively - but I'm sure that there is a better way... I just wanted to get it working again!
-phreique
Offline
I think that I got it figured out why mysqld wasn't starting. You have to add the following lines to your /etc/my.cnf file:
user = mysql
basedir = /usr/
datadir = /var/lib/mysqlAlso check the permissions of /var/lib/mysql. I had to play around with those as well. I set 777 recursively - but I'm sure that there is a better way... I just wanted to get it working again!
-phreique
A new package release has come out, so I'd recommend going with that, rather than throwing 777 permissions around. I'd suggest you give your information to the package maintainer at the bug report.
Offline
Package release 4 is working fine.
Offline
EDIT : of course, I look around for one hour, finally post here, and then I find the solution 5 minutes later.
Last edited by jiyunatori (2009-02-08 13:56:08)
Offline
If you manually deleted files, you should try to reinstall. I did not have any problem since 5.0.75-4 was released.
Offline
hi marxav. actually, I reinstalled several times. but in the end, it was a permission problem. mysql_install_db created everything with root:root permissions. I just had to alter this.
Offline
hi guys, i had the same problem from the original post of this thread. i'm just solved by deleting two files:
bash-3.2# rm /var/lib/mysql/ibdata1
bash-3.2# rm /var/lib/mysql/paranoid-android.pid
...where "paranoid-android" is my hostname.
greets.
pd: excuse any error in my english.
Last edited by danthux (2009-02-27 19:14:01)
Business model FTW: Free2Play GNU/Affero GPL MMORPG Ryzom (more info)
Offline
bash-3.2# rm /var/lib/mysql/ibdata1
bash-3.2# rm /var/lib/mysql/paranoid-android.pid
I did soo and i think it was a mistake. How can i fix it ?
when i try sudo /usr/bin/mysqld_safe --datadir=/var/lib/mysql output is
bash-3.2# sudo /usr/bin/mysqld_safe --datadir=/var/lib/mysql
nohup: ignoring input and redirecting stderr to stdout
Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /var/lib/mysql/jakadinho.pid
090228 17:39:38 mysqld ended
I tried rolling back also but it didnt work. Well mysql does start but i cannot access database with amarok.
Offline
i'm at version 5.0.77-1 now and it fails to start.
i've tried the fixes outlined above, removed the data/pid files, added the lines to my.cnf; nothing fixes it.
starting with mysqld_safe --verbose shows nothing aside from jakadinho's output above.
rolling back to 5.0.75 apparently does not fix this.
//github/
Offline