root@OpenWrt:~# /usr/bin/mysql_install_db --force
Installing MySQL system tables...
ERROR: 1049 Unknown database 'mysql'
110507 15:01:36 [ERROR] Aborting
110507 15:01:36 [Note] /usr/bin/mysqld: Shutdown complete
Installation of system tables failed! Examine the logs in
/mnt/data/mysql/ for more information.
You can try to start the mysqld daemon with:
shell> /usr/bin/mysqld --skip-grant &
and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /mnt/data/mysql/ that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/scripts/mysqlbug script!
root@OpenWrt:~# /etc/init.d/mysqld start
Starting MySQL daemon... done
root@OpenWrt:~# /etc/init.d/mysqld start
Starting MySQL daemon... /usr/bin/mysqld is already running
7814
done
搞到这个地步了,mysql之前是因为没有挂到根目录,安装到u盘上,但是没有block-extroot
现在block-extroot 就基本比较正常了,有点模样了,
不过还是要建立一个快捷方式
ln -s /etc/init.d/mysqld /usr/lib/
详情看这里
https://www.right.com.cn/forum/r ... 1&goto=lastpost
但是还是感觉有问题,我的ucenter还是连不上mysql
这个到底还要装那些软件啊,要死的啊
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|