激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數(shù)據(jù)庫技術(shù)|

服務(wù)器之家 - 數(shù)據(jù)庫 - Mysql - MySQL 客戶端不輸入用戶名和密碼直接連接數(shù)據(jù)庫的2個方法

MySQL 客戶端不輸入用戶名和密碼直接連接數(shù)據(jù)庫的2個方法

2019-10-30 17:42mysql教程網(wǎng) Mysql

MySQL 客戶端不輸入用戶名和密碼直接連接數(shù)據(jù)庫的2個方法,大家可以測試下。

有2個方法 
一、可以修改my.ini 配置參數(shù)(linux下面是 my.cnf); 
[quote][client] 
port=3306 
default-character-set=utf8 
host=localhost 
user=root 
password=1[/quote] 
具體的其他參數(shù)都可以在這里修改 
二、可以修改環(huán)境變量 
MYSQL_HOST 代表主機名 
USER 為用戶名 
MYSQL_PWD 為密碼 
更多的參數(shù)請自行查看mysql的幫助文檔,下面是英文的表格 

Variable

Description

CXX

The name of your C++ compiler (for running configure ).

CC

The name of your C compiler (for running configure ).

CFLAGS

Flags for your C compiler (for running configure ).

CXXFLAGS

Flags for your C++ compiler (for running configure ).

DBI_USER

The default user name for Perl DBI.

DBI_TRACE

Trace options for Perl DBI.

HOME

The default path for the mysql history file is $HOME/.mysql_history .

LD_RUN_PATH

Used to specify the location of libmysqlclient.so .

MYSQL_DEBUG

Debug trace options when debugging.

MYSQL_GROUP_SUFFIX

Option group suffix value (like specifying --defaults-group-suffix ).

MYSQL_HISTFILE

The path to the mysql history file. If this variable is set, its value overrides the default for $HOME/.mysql_history .

MYSQL_HOME

The path to the directory in which the server-specific my.cnf file resides (as of MySQL 5.0.3).

MYSQL_HOST

The default host name used by the mysql command-line client.

MYSQL_PS1

The command prompt to use in the mysql command-line client.

MYSQL_PWD

The default password when connecting to mysqld . Note that using this is insecure. See Section 5.5.6.2, “End-User Guidelines for Password Security”.

MYSQL_TCP_PORT

The default TCP/IP port number.

MYSQL_UNIX_PORT

The default Unix socket file name; used for connections to localhost .

PATH

Used by the shell to find MySQL programs.

TMPDIR

The directory where temporary files are created.

TZ

This should be set to your local time zone. See Section B.1.4.6, “Time Zone Problems”.

UMASK

The user-file creation mode when creating files. See note following table.

UMASK_DIR

The user-directory creation mode when creating directories. See note following table.

USER

The default user name on Windows and NetWare used when connecting to mysqld .

 

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 色av网址| 亚洲视频在线观看免费视频 | 久久久久久久99 | 久久久久久久一区二区 | 精品国产一区二区在线观看 | 午夜视频久久 | 欧美14一15sex性hd| 污片视频网站 | 久久男人天堂 | 99亚洲精品 | 综合网天天色 | 特级黄一级播放 | 毛片在线免费播放 | 亚洲天堂第一页 | 鲁丝片一区二区三区免费入口 | 欧美aaaaa一级毛片在线 | 成人区一区二区三区 | 亚洲一区国产一区 | 全黄毛片 | 99国产精品白浆在线观看免费 | 亚洲精品a级 | 色综合视频 | 97青青草视频 | 成人午夜免费看 | 久久综合给合久久狠狠狠97色69 | 成人男女啪啪免费观看网站四虎 | 91网址在线观看 | www.guochanav.com| 一本视频在线观看 | 调教小男生抽打尿孔嗯啊视频 | 在线亚洲综合 | 黑人日比视频 | 欧美视频在线观看一区 | 亚洲日韩精品欧美一区二区 | 一本一道久久久a久久久精品91 | 精品国产91久久久久久浪潮蜜月 | 黄色影院在线看 | 青青草华人在线 | 国av在线 | 婷婷久久影院 | 久久久久久久久久一本门道91 |