一区二区三区在线-一区二区三区亚洲视频-一区二区三区亚洲-一区二区三区午夜-一区二区三区四区在线视频-一区二区三区四区在线免费观看

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

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

服務器之家 - 數(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 .

 

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 高清国产欧美一v精品 | 免费午夜影片在线观看影院 | 四虎影视在线看免费 720p | 亚洲国产精品久久网午夜小说 | 欧美人鲁交大全 | 国内老司机精品视频在线播出 | 国产精品一区二区国产 | 亚洲春黄在线观看 | 国产一区二区三区在线看 | 国产va免费精品高清在线观看 | 日本加勒比在线精品视频 | 特黄视频免费看 | 厨房play黄瓜进入 | 九九九九九九 | 欧美日韩中文字幕久久伊人 | 日本视频一区在线观看免费 | 天天操天天干天天舔 | 久久精品亚洲国产AV涩情 | 国产成人免费片在线视频观看 | 国产精品久久久久久久久久久久久久 | 免费高清特黄a 大片 | 国产成人综合一区人人 | 日韩精品视频在线观看免费 | 国产麻豆精品入口在线观看 | 国产农村一级特黄α真人毛片 | 日产欧产va1 | 日韩福利一区 | 无人区乱码1区2区3区网站 | 国产视频久久久久 | 小黄文污到你湿 | 亚洲高清无在码在线电影 | 国产 日韩 欧美视频二区 | 欧美a级v片不卡在线观看 | 四虎在线免费 | 欧美日韩国产亚洲一区二区 | 青青青视频免费观看 | 国产经典一区二区三区蜜芽 | 无码人妻视频又大又粗欧美 | 91免费永久国产在线观看 | 香蕉免费一区二区三区在线观看 | 乳女教师欲乱动漫无修版动画3d |