Portál AbcLinuxu, 10. května 2025 14:13
------------------------------------------------- root@armada:/home# /etc/rc.d/rc.mysqld.new start /dev/pts/0: Operation not permitted mysql@armada:~$ /etc/rc.d/rc.mysqld.new start chmod: changing permissions of `/etc/rc.d/rc.mysqld': Operation not permitted Password: Sorry. Installing all prepared tables 050122 13:10:47 /usr/libexec/mysqld: Shutdown Complete To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h armada password 'new-password' See the manual for more instructions. NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not beable to use the new GRANT command! You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at https://order.mysql.com mysql@armada:~$ Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/run/mysql/mysql.pid 050122 13:10:50 mysqld ended -----------------------------------------------------
Postup řešení:
1.) Přečíst si dokumentaci (v tomto případě úplně stačí komentář v /etc/rc.d/rc.mysqld)
2.) Zkusit vyhledat, jestli už stejnej problém neřešil někdo jinej
# su root # cd /var/lib (where Slackware 9.0 installs mysql) # chown -R mysql mysql mysql # chgrp -R root mysql mysql # su mysql $ cd mysql $ mysql_install_db $ safe_mysqld --user=mysql & hit enter when the db loads $ exit # mysqladmin -u root status - verify the database is runninga jakmile se prihlasim jako user mysql a dam mysql_install_db a pote dam prikaz "mysql_safe --user=mysql &" tak to vypíše toto:
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.