![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
A&&K
这个作者很懒,什么都没留下…
展开
-
mysql忘记密码(Linux和Windows中各自解决方法)
https://blog.csdn.net/xl_1803/article/details/82503781https://www.jb51.net/article/85494.htm原创 2020-12-30 10:22:39 · 470 阅读 · 1 评论 -
MySQL 中出现报错提示: ‘Variable ‘XXX‘ is a read only variable‘的解决方法
一)问题描述:当我们查看mysql中的 secure_file_priv参数 时,发现它的默认值是NULL,表示限制不能导入导出。当我们要修改此参数时就会报错:二)原因分析:因为 secure_file_priv参数是一个只读参数,不能使用 set global命令 修改。三)解决方法:需要在my.ini配置文件中更改该参数,之后重启数据库。如果当前的mysql版本在my.ini配置文件中没有找到secure_file_priv参数,那么就打开my.cnf 或 my.ini并添加 secur原创 2020-12-15 03:03:45 · 13744 阅读 · 0 评论 -
PHP脚本连接数据库
一)用PHP脚本连接MySQL:PHP中提供mysqli_connnect()函数连接数据库;语法如下:mysqli_connect(host, username, password, dbname,port, socket);注:mysqli_connect()函数的参数有6个(均为可选值):最简单的打开一个DB连接的实例:<?php $dbhost = 'localhost'; // mysql服务器主机地址 $dbuser = 'root'; // mysql用户名 $dbpa原创 2020-07-08 11:13:36 · 871 阅读 · 0 评论