sudo aptitude install mysql
固然方便,有些时候,还要用源码或者binary安装
一些知识如下:
sudo ./scripts/mysql_install_db --user=mysql --ldata=/data/mysql --basedir=.
引用
./bin/mysql: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
sudo aptitude install lib32ncurses5 lib32ncursesw5
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 !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h ubuntu password 'new-password'
Alternatively you can run:
./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 . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./scripts/mysqlbug script!
Installation of system tables failed! Examine the logs in
/var/lib/mysql for more information.
You can try to start the mysqld daemon with:
shell> ./bin/mysqld --skip-grant &
and use the command line tool ./bin/mysql
to connect to the mysql database and look at the grant tables:
shell> ./bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql that may be helpful.
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf -
shell> ln -s full-path-to-mysql-VERSION-OS mysql
shell> cd mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
分享到:
相关推荐
本文档简单的阐述了如何在Ubuntu18.04安装mysql,并成功的启动mysql,笔者是window 10 和Ubuntu的双系统,为了方便就安装了个mysql
Ubuntu18.0.4安装mysql5.7.25后无法登陆如何处理
手动在Ubuntu系统下安装指定版本mysql,
ubuntu20.04离线安装mysql8.0.30需要的tar包和对应的两个依赖包分别是:libaio1和libmecab2,详细的安装步骤请关注博主的另一篇博文
ubuntu12.04安装mysql---黑佳伦.pdf
ubuntu16.04自动安装mysql5.7的部署脚本,内附mysql5.7,脚本中有注释,另有数据库搭建脚本。
ubuntu安装mysql5.6完整步骤说明(亲测实用).docx
这是一份可以在Ubuntu安装的mysql,同时里面附带了安装手册,适用于ubuntu系统,便于快速安装。
ubuntu14.4安装mysql5.7.38,附带mysql文件,以及安装步骤说明
从mysql官网上下载mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar,然后进行离线安装,解压该安装包,会出现11个依赖包,按照顺序依次使用sudo dpkg -i 进行安装,中间会报错,显示缺少相应的依赖,具体...
ubuntu系统安装mysql
Ubuntu 通过国内的镜像源安装 MySQL ,可以安装 MySQL 5.7 和 MySQL8.0 ,以及更新到最新版本。
在Ubuntu上离线安装mysql5.7.25。完整安装包(含三个依赖包)
Ubuntu下安装mysql5.7.19源码,过程详细。。。。。。。。。。。。。。。。。。。。
Ubuntu18.0.4安装MySQL,修改ROOT用户密码并允许远程访问,添加用户并配置数据库的访问权限
ubuntu 安装mysql odbc驱动
主要为大家详细介绍了Ubuntu手动安装mysql5.7.10的详细过程,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
内含脚本+完整依赖包 详情请看 https://blog.csdn.net/u010766602/article/details/82994454
ubuntu下MySql的安装教程,每一步都有详细的说明。也提供了一些安装中的问题的解决方法,绝对可用。
ubuntu下安装MySQL数据库 亲测 已使用