MYSQL出现问题了,高高高手快来帮帮忙呀

发布于 2022-10-02 07:06:16 字数 1687 浏览 16 评论 0

我启动我的mysqld的时候出现:
[root@mail2 bin]# /usr/local/mysql/bin/safe_mysqld --user=mysql &
[2] 31591
[1]   Exit 127                /usr/local/mysql/safe_mysqld --user=mysql
[root@mail2 bin]# Starting mysqld daemon with databases from /usr/local/mysql/var
040826 17:10:02  mysqld ended

[2]+  Done                    /usr/local/mysql/bin/safe_mysqld --user=mysql
[root@mail2 bin]# cd /usr/local/mysql/var
[root@mail2 var]# ls
mail2-bin.001  mail2-bin.002  mail2-bin.003  mail2-bin.004  mail2-bin.index  mail2.gzknet.com.err
[root@mail2 var]# cat mail2.gzknet.com.err
040826 16:36:16  mysqld started
040826 16:36:16  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:36:16  mysqld ended

040826 16:52:14  mysqld started
040826 16:52:14  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:52:14  mysqld ended

040826 16:56:22  mysqld started
040826 16:56:22  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:56:22  mysqld ended

040826 17:10:02  mysqld started
040826 17:10:02  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 17:10:02  mysqld ended

[root@mail2 var]#

快帮帮忙...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

他不在意 2022-10-09 07:06:16

你没有建表,
mysql_install_db

〃安静 2022-10-09 07:06:16

还是不能启动:
Preparing db table
Preparing host table
Preparing user table
Preparing func table
Preparing tables_priv table
Preparing columns_priv table
Installing all prepared tables

040827 10:05:35  /usr/local/mysql/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 !
This is done with:
/usr/local/mysql/bin/mysqladmin -u root  password 'new-password'
/usr/local/mysql/bin/mysqladmin -u root -h mail2.gzknet.com  password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr/local/mysql ; /usr/local/mysql/bin/safe_mysqld &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; run-all-tests

Please report any problems with the /usr/local/mysql/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
[root@mail2 bin]# /usr/local/mysql/bin/safe_mysqld &
[1] 2780
[root@mail2 bin]# Starting mysqld daemon with databases from /usr/local/mysql/var
040827 10:12:20  mysqld ended

[1]+  Done                    /usr/local/mysql/bin/safe_mysqld
[root@mail2 bin]# cd /usr/local/mysql/var
[root@mail2 var]# ls
mail2-bin.001  mail2-bin.003  mail2-bin.005  mail2-bin.007  mail2-bin.009  mail2-bin.011  mail2-bin.index       mysql
mail2-bin.002  mail2-bin.004  mail2-bin.006  mail2-bin.008  mail2-bin.010  mail2-bin.012  mail2.gzknet.com.err  test
[root@mail2 var]# cat mail2.gzknet.com.err
040826 16:36:16  mysqld started
040826 16:36:16  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:36:16  mysqld ended

040826 16:52:14  mysqld started
040826 16:52:14  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:52:14  mysqld ended

040826 16:56:22  mysqld started
040826 16:56:22  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 16:56:22  mysqld ended

040826 17:10:02  mysqld started
040826 17:10:02  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 17:10:02  mysqld ended

040826 17:41:02  mysqld started
040826 17:41:02  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040826 17:41:02  mysqld ended

040827 10:05:21  mysqld started
040827 10:05:22  /usr/local/mysql/libexec/mysqld: Table 'mysql.host' doesn't exist
040827 10:05:22  mysqld ended

040827 10:06:53  mysqld started
040827 10:06:53  /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
040827 10:06:53  mysqld ended

040827 10:08:04  mysqld started
040827 10:08:04  /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
040827 10:08:04  mysqld ended

040827 10:09:49  mysqld started
040827 10:09:49  /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
040827 10:09:49  mysqld ended

040827 10:12:20  mysqld started
040827 10:12:20  /usr/local/mysql/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
040827 10:12:20  mysqld ended

[root@mail2 var]#

套路撩心 2022-10-09 07:06:16

为什么呢>;?请高手帮帮忙哦

时光暖心i 2022-10-09 07:06:16

数据库没有初始化好

撩动你心 2022-10-09 07:06:16

应该如何初始化数据库呢?

是不是因为有其他的mysql在运行呢
因为我的系统是AS Linux3.0,没有自带的mysql-server,所以我就安装了source的mysql上去
但是系统自带的mysql没有删除掉

会不会有影响呢?

莫多说 2022-10-09 07:06:16

mysql不能启动的原因有许多.

楼主先看看./path/mysql/var/mysql/*.err这个文件的提示.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文