linux mysql 初始化_linux下配置mysql和mysql初始化

本文档详细记录了在Linux系统中安装MySQL并进行初始化的过程。在初始化过程中遇到警告,提示不能用resolveip查找主机数据,但不影响mysqld正常工作,只是主机名解析不起作用。安装完成后,建议在启动时设置MySQL root用户的密码,并提供了相应的命令。对于生产服务器,推荐运行mysql_secure_installation以增强安全性。
摘要由CSDN通过智能技术生成

下面是正常初始化后提示的信息,这篇文章很重要

[root@dataserver scripts]# ./mysql_install_db --basedir=/application/mysql --datadir=/application/mysql/data/ --user=mysql

##指定mysql安装路径,指定数据文件夹data路径,指定用户初始化

WARNING: The host ‘dataserver‘ could not be looked up with resolveip.

警告:不能用resoleip查找主机的数据表。

This probably means that your libc libraries are not 100 % compatible

这可能意味着您的libc库并不是100%兼容的使用这个二进制MySQL版本。

with this binary MySQL version. The MySQL daemon, mysqld, should work

MySQL守护进程mysqld应该工作

normally with the exception that host name resolving will not work.

通常情况下,主机名解析不会起作用。

This means that you should use IP addresses instead of hostnames

这意味着你应该使用IP地址而不是主机名

when specifying MySQL privileges !

在指定MySQL特权时!

Installing MySQL system tables...

OK

Filling help tables...

OK

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

要在启动时启动mysqld,必须复制

支持文件/ mysql。服务器到您的系统的正确位置

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

请记住为MySQL根用户设置密码!

为此,启动服务器,然后发出以下命令:

/application/mysql/bin/mysqladmin -u root password ‘new-password‘

/application/mysql/bin/mysqladmin -u root -h dataserver password ‘new-password‘

Alternatively you can run:

/application/mysql/bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default.  This is

strongly recommended for production servers.

这也可以让你选择取消测试

默认情况下创建的数据库和匿名用户。这是

强烈推荐生产服务器。

See the manual for more instructions.

更多的说明请参阅手册。

You can start the MySQL daemon with:

cd /application/mysql ; /application/mysql/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd /application/mysql/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /application/mysql/scripts/mysqlbug script!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值