Home  >  Article  >  Database  >  mysql根本用法

mysql根本用法

WBOY
WBOYOriginal
2016-06-07 16:26:34991browse

mysql基本用法 最近项目使用mysql数据库,以前没接触过。所以找了些资料学习。 目前通过navicat for mysql工具进行mysql数据基本操作。 1.安装navicat for mysql后,建立连接。 2.导入需要创建的sql语句。通过选中库名称右键运行sql文件,加载需要导入的sql语

mysql基本用法

最近项目使用mysql数据库,以前没接触过。所以找了些资料学习。

目前通过navicat for mysql工具进行mysql数据基本操作。

1.安装navicat for mysql后,建立连接。

2.导入需要创建的sql语句。通过选中库名称右键运行sql文件,加载需要导入的sql语句。

3.增加其中数据,注意增加的字段如果增加提示1306错误,需要修改字段的符号位utf8后即可增加

4.如果远程连接mysql服务器,需要在远程服务器mysql中对客户端访问进行授权语句

GRANT ALL PRIVILEGES ON test.* TO 'userid'@客户端IP地址 IDENTIFIED BY '密码 WITH GRANT OPTION;

FLUSH   PRIVILEGES;  --ip客户端

 

 

运行上面语句即可访问mysql数据库。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn