常用mysql语句

2018-10-16 19:09:45 xhs
改密码 mysqladmin -uroot -p123456 password 123 建数据库 CREATE DATABASE `mydb` CHARACTER SET utf8 COLLATE u...

mysql可连接IP

2019-01-31 13:40:36 xhs
mysql> insert into user (host,user,password, ssl_cipher, x509_issuer,x509_subject) values('192.168.3.%','r...

UPDATE语句写错了

2018-09-06 10:54:32 xhs
想更新物品数量,本来是9,需要减5,并且更新时间 SQL写成这样 UPDATE user_borrow_goods SET num=num-5 AND update_time=1535363307 WHERE...

安装mysql5.6,5.7

2019-06-14 16:55:57 xhs
rpm -ivh http://repo.mysql.com/yum/mysql-5.5-community/el/6/x86_64/mysql-community-release-el6-5.noarch....

centos7安装mysql

2019-08-16 10:03:17 xhs
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-co...

查软件安装目录, mysql

2019-08-16 10:19:23 xhs
rpm -qa | grep mysql 得到 mysql-community-server-5.7.27-1.el7.x86_64 rpm -ql mysql-community-server-5.7.27...