Ubuntu tar方式安装mysql5.7.21 时报错 [ERROR] Can't locate the language directory. 以及

Wesley13
• 阅读 597

参考帖子:

http://blog.csdn.net/ty0415/article/details/22958133

首先,在 MySQL 官方网站上下载安装包, 如图:

Ubuntu  tar方式安装mysql5.7.21 时报错 [ERROR]   Can't locate the language directory. 以及

然后,执行安装命令  

bin/mysql_install_db --user=mysql --basedir=/home/devil/mysql57/ --datadir=/home/devil/mysql57/data/

Ubuntu  tar方式安装mysql5.7.21 时报错 [ERROR]   Can't locate the language directory. 以及

报错:

2018-01-24 07:57:03 [ERROR]   Can't locate the language directory.

发现其中有如此这个警告:

[WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize

于是,更换安装方法:

bin/mysqld --initialize --user=mysql --basedir=/home/devil/mysql57/ --datadir=/home/devil/mysql57/data/

Ubuntu  tar方式安装mysql5.7.21 时报错 [ERROR]   Can't locate the language directory. 以及

报错:

bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

根据博客开头给出的参考帖内容,进行一下措施:

sudo apt-get install libaio1

再次执行安装:

bin/mysqld --initialize --user=mysql --basedir=/home/devil/mysql57/ --datadir=/home/devil/mysql57/data/

Ubuntu  tar方式安装mysql5.7.21 时报错 [ERROR]   Can't locate the language directory. 以及

已经能够生成临时密码,证明操作成功。

点赞
收藏
评论区
推荐文章
Wesley13 Wesley13
3年前
IOS HTTP请求 GET POST 网络编程实现
转自http://blog.csdn.net/defeny/article/details/17789037/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fdefeny%2Farticle%2Fdetails%2F17789037%2F)在开发网络相
Wesley13 Wesley13
3年前
Android 中各种权限深入体验及详解
原文链接:http://blog.csdn.net/t12x3456/article/details/7749200(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Ft12x3456%2Farticle%2Fdetails%2F7749200)一.
Wesley13 Wesley13
3年前
linux命令:find命令
http://blog.csdn.net/pipisorry/article/details/39831419(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fpipisorry%2Farticle%2Fdetails%2F39831419)linu
Wesley13 Wesley13
3年前
Hadoop:Hadoop单机伪分布式的安装和配置
http://blog.csdn.net/pipisorry/article/details/51331734(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fpipisorry%2Farticle%2Fdetails%2F51331734)本文内容
Stella981 Stella981
3年前
Electron MacOS安装以及运行
参考原文:http://blog.csdn.net/ctbinzi/article/details/23055451(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fctbinzi%2Farticle%2Fdetails%2F23055451)
Stella981 Stella981
3年前
Android多触点总结
文章部分内容参考:http://blog.csdn.net/barryhappy/article/details/7392326(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fbarryhappy%2Farticle%2Fdetails%2F73923
Stella981 Stella981
3年前
ContextLoaderListener容器初始化
http://blog.csdn.net/qq924862077/article/details/52769754(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fqq924862077%2Farticle%2Fdetails%2F52769754)
Stella981 Stella981
3年前
Lucene学习总结之四:Lucene索引过程分析(4)
【转载http://blog.csdn.net/forfuture1978/article/details/5279200(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fforfuture1978%2Farticle%2Fdetails%2F
Stella981 Stella981
3年前
App 后台架构设计方案 设计思想与最佳实践
转http://blog.csdn.net/smartbetter/article/details/53933096(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fsmartbetter%2Farticle%2Fdetails%2F53933096)
Wesley13 Wesley13
3年前
ActiveMQ与Spring集成
参考资料http://blog.csdn.net/jiuqiyuliang/article/details/48758203(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fblog.csdn.net%2Fjiuqiyuliang%2Farticle%2Fdetails%2F