Mysql
文章平均质量分 57
php@king
If only you knew!
展开
-
MySQL用户授权
【代码】MySQL用户授权。原创 2022-10-08 15:27:48 · 266 阅读 · 0 评论 -
mysql
数据库 1、连接mysql服务器 格式:mysql -h 主机名 -u 用户名 -p密码 库名 mysql -h localhost -u root -p 2、创建用户并授权授权 格式:grant 允许操作 on 库名.表名 to 账号@来源 identified by '密码'; grant select,insert,delete,update on g21.* to malikuan@...原创 2019-01-25 12:03:01 · 390 阅读 · 1 评论 -
SQL语句连表and子查询
SQL语句 主表 CREATE TABLE ma_member ( id int(11) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) CHARACTER SET utf8 DEFAULT NULL, sex tinyint(2) DEFAULT NULL, status tinyint(4) DEFAULT NULL, create_ti...原创 2019-08-20 09:58:12 · 721 阅读 · 0 评论 -
php通过mysqli进行数据库备份
<?php header("Content-type:text/html;charset=utf-8"); //配置信息 $cfg_dbhost = 'localhost'; $cfg_dbname = 'bswork'; $cfg_dbuser = 'root'; $cfg_dbpwd = ''; $cfg_db_language = 'utf8'; $to_file_na...原创 2019-08-21 10:37:42 · 488 阅读 · 0 评论