Login
网站首页 > 文章中心 > 其它

centos7.2_x64安装mysql.tar.gz

作者:小编 更新时间:2023-08-16 17:54:00 浏览量:233人看过

①.).修改当前目录拥有者为mysql用户:执行命令?chown -R mysql:mysql ./

可能出现的问题:

-bash: ./scripts/mysql_install_db: /usr/bin/perl: bad interpreter: No such file or directory提示注释器错误,没有/usr/bin/perl文件或者档案,解决办法(安装perl跟perl-devel即可):执行 ?yum -y install perl perl-devel

解决办法:yum -y install autoconf

到此数据库安装完毕

rm -rf /etc/my.cnf

没有初始化权限表

[root@localhost ~]# cd/usr/local/mysql

To start mysqld at boot time you have to copysupport-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:

Alternatively you can run:./bin/mysql_secure_installation

which will also give you the option of removing the testdatabases and anonymous user created by default.?This isstrongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:cd . ; ./bin/mysqld_safe

You can test the MySQL daemon with mysql-test-run.plcd ./mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

从任何主机上使用root用户,密码:youpassword(你的root密码)连接到mysql服务器:

操作完后切记执行以下命令刷新权限?

FLUSH PRIVILEGES;

/usr/local/mysql/bin/mysqladmin -u root -p shutdown

# 在profile文件末尾增加两行PATH=/usr/local/mysql/bin:/usr/local/mysql/lib:$PATHexport PATH

source /etc/profile

以上就是土嘎嘎小编大虾米为大家整理的相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!

版权声明:倡导尊重与保护知识产权。未经许可,任何人不得复制、转载、或以其他方式使用本站《原创》内容,违者将追究其法律责任。本站文章内容,部分图片来源于网络,如有侵权,请联系我们修改或者删除处理。

编辑推荐

热门文章