摘要:
在执行mysqldump命令备份数据库时报错:Warning: Using a password on the command line interface can be insecure. 解决方法:修改mysql配置文件vim /etc/my.cnf 或mysql安装包所在的位置中的my.cnf 阅读全文
摘要:
从错误信息 “Can't start server : Bind on unix socket: Address already in use” 以及 “Do you already have another mysqld server running on socket: /tmp/mysql.s 阅读全文
摘要:
使用命令修改%为通配符,可以允许主机ip192.168.172.7**访问,如果最后不是1开始就不用执行这步操作 use mysql; select host from user where user='root';修改权限 UPDATE user set host='%' where user=' 阅读全文
摘要:
有时候我们需要使用MySQL中的in()查询,在微擎中,因为有pdo_系列方法,一般来说,想当然的会像下面这种方式使用: $ids_string = '1,2,3'; pdo_fetchall("select * from ".tablename('demo_table')." where unia 阅读全文
摘要:
一、ORDER BY含义:order by 排序字段,order by默认采用升序(asc),如果存在 where 子句,那么 order by 必须放到 where 询句后面。 select ename,job,sal from emp where job = ‘MANAGER’order by 阅读全文