Installing MySQL on Linux Using Debian Packages from Oracle

1. allow all ip access db.

mysql> CREATE USER 'root'@'%' IDENTIFIED BY '******';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;

 2. Linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写;

   用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加

bind-address            = 192.168.1.32
lower_case_table_names  = 1
character-set-server    = utf8
collation-server        = utf8_general_ci

 3.  sudo service mysql restart

 

Installing MySQL on Linux Using Debian Packages from Oracle

 

Install http://dev.mysql.com/doc/refman/5.6/en/linux-installation-debian.html

 

    1 . libaio1_0.3.109-4_amd64.deb

    2.  libc6_2.19-0ubuntu6_amd64.deb

    3.  libnuma1_2.0.9~rc5-1ubuntu2_amd64.deb

    4.  mysql-server_5.6.31-1ubuntu14.04_amd64.deb-bundle.tar

 
Librarys  : 
dpkg -i libaio1_0.3.109-4_amd64.deb
dpkg -i libc6_2.19-0ubuntu6_amd64.deb
dpkg -i libnuma1_2.0.9~rc5-1ubuntu2_amd64.deb

 

For a basic installation of the MySQL server, install the database common files package, the client package, the client metapackage, the server package, and the server metapackage (in that order);
shell> sudo tar -xvf mysql-server_MVER-DVER_CPU.deb-bundle.tar
shell> sudo dpkg -preconfigure mysql-community-server_*.deb
shell> sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb

 

If you are being warned of unmet dependencies by  dpkg, you can fix them using  apt-get:
sudo apt-get -f install

 

    Here are where the files are installed on the system:

  • All configuration files (like my.cnf) are under /etc/mysql

  • All binaries, libraries, headers, etc., are under /usr/bin and /usr/sbin

  • The data directory is under /var/lib/mysql

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值