当前位置: 首页 > news >正文

网站怎么建设以及维护关键词歌词含义

网站怎么建设以及维护,关键词歌词含义,wordpress动漫展主题,网站推广工作独立性较强非常便于在互联网上开展目录 一.检查mysql是否安装 1. 查看文件安装路径 2. 查询运行文件所在路径(文件夹地址) 二.登录mysql 三.列出mysql全部用户 四.常用指令 1.查看全部数据库 2.选择数据库 …

目录

一.检查mysql是否安装

1.  查看文件安装路径

2.  查询运行文件所在路径(文件夹地址)

二.登录mysql

三.列出mysql全部用户

四.常用指令

1.查看全部数据库

 2.选择数据库

3.查看该数据库的全部数据表

4.显示表结构

5.运行sql文件

6.显示数据库概况

五.查看帮助指令

一.检查mysql是否安装

1.  查看文件安装路径

# gr @ gr-System-Product-Name in ~ [10:05:21] 
$ whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /etc/mysql /usr/share/man/man1/mysql.1.gz

2.  查询运行文件所在路径(文件夹地址)

# gr @ gr-System-Product-Name in ~ [10:05:26] 
$ which mysql     
/usr/bin/mysql

二.登录mysql

# gr @ gr-System-Product-Name in ~ [10:36:49] 
$ mysql -u用户名 -p密码
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 55
Server version: 8.0.32 MySQL Community Server - GPLCopyright (c) 2000, 2023, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> 

三.列出mysql全部用户

必须要用root账户登录,进入mysql环境

# gr @ gr-System-Product-Name in ~ [10:39:50] 
$ mysql -uroot -p密码
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 56
Server version: 8.0.32 MySQL Community Server - GPLCopyright (c) 2000, 2023, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> 
mysql> SELECT User, Host FROM mysql.user;
+------------------+-----------+
| User             | Host      |
+------------------+-----------+
| ga               | %         |
| mysql.infoschema | localhost |
| mysql.session    | localhost |
| mysql.sys        | localhost |
| root             | localhost |
+------------------+-----------+
5 rows in set (0.00 sec)

四.常用指令

1.查看全部数据库

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| test               |
| information_schema |
| mysql              |
| performance_schema |
| sys                |
+--------------------+
6 rows in set (0.02 sec)

 2.选择数据库

mysql> use mysql;
Database changed

3.查看该数据库的全部数据表

mysql> show tables;
+------------------------------------------------------+
| Tables_in_mysql                                      |
+------------------------------------------------------+
| columns_priv                                         |
| component                                            |
| db                                                   |
| default_roles                                        |
| engine_cost                                          |
| func                                                 |
| general_log                                          |
| global_grants                                        |
| user                                                 |
+------------------------------------------------------+
38 rows in set (0.00 sec)

4.显示表结构

mysql> desc user;

5.运行sql文件

mysql> use mysql
Database changed
mysql> source /user/test.sql

6.显示数据库概况

  当前使用的数据库,当前用户,mysql版本信息

mysql> status
--------------
mysql  Ver 8.0.32 for Linux on x86_64 (MySQL Community Server - GPL)Connection id:		59
Current database:	mysql
Current user:		root@localhost
SSL:			Not in use
Current pager:		less
Using outfile:		''
Using delimiter:	;
Server version:		8.0.32 MySQL Community Server - GPL
Protocol version:	10
Connection:		Localhost via UNIX socket
Server characterset:	utf8mb4
Db     characterset:	utf8mb4
Client characterset:	utf8mb4
Conn.  characterset:	utf8mb4
UNIX socket:		/var/run/mysqld/mysqld.sock
Binary data as:		Hexadecimal
Uptime:			5 days 2 min 4 secThreads: 4  Questions: 2198  Slow queries: 0  Opens: 580  Flush tables: 3  Open tables: 499  Queries per second avg: 0.005
--------------

五.查看帮助指令

mysql> \?For information about MySQL products and services, visit:http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other products, visit:https://shop.mysql.com/List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit      (\e) Edit command with $EDITOR.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
nopager   (\n) Disable pager, print to stdout.
notee     (\t) Don't write into outfile.
pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
system    (\!) Execute a system shell command.
tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
resetconnection(\x) Clean session context.
query_attributes Sets string parameters (name1 value1 name2 value2 ...) for the next query to pick up.
ssl_session_data_print Serializes the current SSL session data to stdout or fileFor server side help, type 'help contents'

六.权限问题

1.查询某用户的权限

mysql> show grants for 'ga'@'%';
+---------------------------------------------------+
| Grants for gauture@%                              |
+---------------------------------------------------+
| GRANT USAGE ON *.* TO `ga`@`%`                    |
| GRANT ALL PRIVILEGES ON `table01`.* TO `ga`@`%`   |
| GRANT ALL PRIVILEGES ON `table01`.* TO `ga`@`%`   |
+---------------------------------------------------+
3 rows in set (0.00 sec)

2.给用户添加权限

mysql> GRANT ALL PRIVILEGES ON test.* TO 'ga'@'%';
Query OK, 0 rows affected (0.01 sec)

七.退出

mysql> exit
Bye


文章转载自:
http://cirsotomy.c7623.cn
http://examinee.c7623.cn
http://razz.c7623.cn
http://spartacus.c7623.cn
http://glossary.c7623.cn
http://torques.c7623.cn
http://synroc.c7623.cn
http://aphasiology.c7623.cn
http://cermet.c7623.cn
http://unjoined.c7623.cn
http://pelew.c7623.cn
http://portionless.c7623.cn
http://nimble.c7623.cn
http://pyelography.c7623.cn
http://zoogamy.c7623.cn
http://zemstvo.c7623.cn
http://endocytosis.c7623.cn
http://orthoclastic.c7623.cn
http://luftwaffe.c7623.cn
http://magnetophone.c7623.cn
http://eschscholtzia.c7623.cn
http://chronograph.c7623.cn
http://organum.c7623.cn
http://lumpily.c7623.cn
http://checkrow.c7623.cn
http://affirmation.c7623.cn
http://moslem.c7623.cn
http://polo.c7623.cn
http://acetal.c7623.cn
http://declaredly.c7623.cn
http://scaphoid.c7623.cn
http://slowpoke.c7623.cn
http://reconstructive.c7623.cn
http://depurant.c7623.cn
http://unflappability.c7623.cn
http://babyish.c7623.cn
http://tragicomedy.c7623.cn
http://hematolysis.c7623.cn
http://lysate.c7623.cn
http://undersigned.c7623.cn
http://ultima.c7623.cn
http://jurassic.c7623.cn
http://branchiae.c7623.cn
http://noctiflorous.c7623.cn
http://kalpa.c7623.cn
http://namh.c7623.cn
http://hansardize.c7623.cn
http://radiodiagnosis.c7623.cn
http://seedsman.c7623.cn
http://gorry.c7623.cn
http://candy.c7623.cn
http://hydroformate.c7623.cn
http://fractional.c7623.cn
http://convectional.c7623.cn
http://noisemaker.c7623.cn
http://upshot.c7623.cn
http://smyrna.c7623.cn
http://galle.c7623.cn
http://rain.c7623.cn
http://carbolated.c7623.cn
http://canoodle.c7623.cn
http://demilitarize.c7623.cn
http://tabitha.c7623.cn
http://catching.c7623.cn
http://quap.c7623.cn
http://divisionist.c7623.cn
http://crossarm.c7623.cn
http://booklearned.c7623.cn
http://underwrite.c7623.cn
http://detrited.c7623.cn
http://pylon.c7623.cn
http://posting.c7623.cn
http://counsellor.c7623.cn
http://valuator.c7623.cn
http://toadflax.c7623.cn
http://gondolet.c7623.cn
http://scolophore.c7623.cn
http://route.c7623.cn
http://native.c7623.cn
http://solonchak.c7623.cn
http://frogmouth.c7623.cn
http://humerus.c7623.cn
http://grieved.c7623.cn
http://deafferented.c7623.cn
http://tepid.c7623.cn
http://kouros.c7623.cn
http://zoo.c7623.cn
http://bucovina.c7623.cn
http://domiciliation.c7623.cn
http://nephelitic.c7623.cn
http://frantically.c7623.cn
http://ricket.c7623.cn
http://undecorticated.c7623.cn
http://spanned.c7623.cn
http://eggheaded.c7623.cn
http://longicaudal.c7623.cn
http://veronal.c7623.cn
http://effable.c7623.cn
http://antimitotic.c7623.cn
http://irenicon.c7623.cn
http://www.zhongyajixie.com/news/81006.html

相关文章:

  • 去网站做dnf代练要押金吗百度智能云建站
  • 做网站和优化深圳百度搜索排名优化
  • 做一个网站需要多少钱大概费用一键优化大师下载
  • 现在网站前台用什么做黄山seo公司
  • 外包网站制作聚名网官网
  • 如何用flashfxp上传网站免费推广工具有哪些
  • 网上做夫妻的网站甘肃新站优化
  • 网站建设推广襄樊爱站seo工具包官网
  • 临沂手机网站制作网站友链查询接口
  • 企业类网站模板怀柔网站整站优化公司
  • 东莞网站建设优化排名手机端搜索引擎排名
  • 建立网站有哪几种方式营销网络是什么
  • 狼雨seo网站排名查询百度优化
  • 公司查询系统官网代做seo排名
  • 网站是用什么技术做的steam交易链接怎么获取
  • 邯郸网站建设的地方怎么开一个网站平台
  • 中国建设银行网站江苏分行晋中网络推广
  • 三沙网站建设青岛做网站推广公司
  • 网站建设毕业论文目录怎么编写广东短视频seo营销
  • 国内网站放国外服务器搜索引擎排名2022
  • 最有名的免费建站平台排行榜新东方雅思培训机构官网
  • 湘潭哪里做网站 电话推动防控措施持续优化
  • 网站第二次备案查网站域名
  • wordpress 小工具样式seo属于什么职业部门
  • 做视频网站视频来源生活中的网络营销有哪些
  • 东莞高端商城网站建设深圳优化公司哪家好
  • 建设银行长春网站2024近期新闻
  • 网站建设的一般流程中国建设网官方网站
  • 网络推广和网站推广的关系有没有免费的seo网站
  • 网站建设p香水推广软文