在linux系统的服务器上安装sql
2018-02-26 16:59
323 查看
在xshell连接到服务器后输入sudo su 进入root目录,逐条输入下面的指令,亲测及其好用
yum -y install mysql mysql-server mysql-devel php-mysql
chkconfig --level 35 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation
Enter current password for root (enter for none): ----》默认为空密码直接回车
Set root password? [Y/n] y ----》设置root密码
New password:
Re-enter new password:
Remove anonymous users? [Y/n] y ----》禁止匿名访问
Disallow root login remotely? [Y/n] y ----》不允许root远程访问
Remove test database and access to it? [Y/n] y ----》删除测试数据库test
Reload privilege tables now? [Y/n] y ----》重新加载授权信息
创建的名为mysql数据库中就会存在新创建的用户信息,保存用户信息的数据库名字一般为user,这里创建的是mysql,用户名一般为root,密码可以设置也可以为空
在xshell连接到服务器后输入sudo su 进入root目录,逐条输入下面的指令,亲测及其好用
yum -y install mysql mysql-server mysql-devel php-mysql
chkconfig --level 35 mysqld on
/etc/init.d/mysqld start
mysql_secure_installation
Enter current password for root (enter for none): ----》默认为空密码直接回车
Set root password? [Y/n] y ----》设置root密码
New password:
Re-enter new password:
Remove anonymous users? [Y/n] y ----》禁止匿名访问
Disallow root login remotely? [Y/n] y ----》不允许root远程访问
Remove test database and access to it? [Y/n] y ----》删除测试数据库test
Reload privilege tables now? [Y/n] y ----》重新加载授权信息
创建的名为mysql数据库中就会存在新创建的用户信息,保存用户信息的数据库名字一般为user,这里创建的是mysql,用户名一般为root,密码可以设置也可以为空
相关文章推荐
- Linux系统下智能DNS服务器BIND9.7.2安装配置
- IBM x3650 M3服务器安装Linux系统
- IBM x3650 M3服务器安装老版Linux系统
- linux系统上tftp服务器的安装配置
- Linux上安装配置InstantClient及64位系统Pl/SQL配置
- 在Linux系统中安装系统日志服务器
- 【Linux系统和服务管理】MySQL服务器安装与配置(一)
- 在linux系统下安装配置apache服务器
- linux下系统安装和MySql服务器的安装(原创记录)
- 如何在centOS等一些linux系统下安装oracle sqldeveloper图形化数据库操作界面
- linux系统上安装svn服务器 环境linux+nginx+svnserver
- IBM服务器系统安装(随笔/Linux)
- win7 64位系统下安装PL/SQL连接Oracle服务器的解决方法
- 【Linux系统和服务管理】MySQL服务器安装与配置(二)
- vmware环境下linux系统中安装sendmail服务器
- 网络服务器kickstart+pxe 无盘安装linux系统
- linux系统之yum服务器的安装配置
- Linux系统中的Sendmail服务器的安装和配置