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

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

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 代表主機(jī)名 
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 .

 

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 国产欧美精品一区二区三区四区 | 国产精品全国探花在线观看 | swag最新正在播放 | 亚洲AV蜜桃永久无码精品无码网 | 91制片厂制作传媒网站破解 | 4hc44四虎永久地址链接 | 欧美日韩亚洲综合在线一区二区 | 牛牛色婷婷在线视频播放 | 天天色综合6 | 大桥未久aⅴ一区二区 | 天天av天天翘天天综合网 | 欧美se图| 久久99re2在线视频精品 | 青青在线视频免费 | 亚洲国产成人精品激情 | 亚洲国产精品一区二区首页 | 精品在线免费观看 | chinese一tk视频丨vk | 精品亚洲国产一区二区 | 免费特黄一级欧美大片在线看 | 拍拍叫痛的无挡视频免费 | 四虎海外影院 | 草莓绿巨人香蕉茄子芭乐 | 国产乱叫456在线 | 操比图片| chinese男gay飞机同志 | 99久久国产综合精品1尤物 | bbc japanese黑人强行 | 免费看国产一级片 | 女人又色又爽又黄 | x8x8在线观看免费 | 日韩视频在线精品视频免费观看 | 欧美在线视频一区在线观看 | jk制服蕾丝超短裙流白浆 | 973影院| 国产精品福利短视在线播放频 | 四虎影视黄色 | 我的青梅竹马是消防员2季未增删免费 | 精品手机在线视频 | 好大好深好涨好烫还要 | 日韩一区二区中文字幕 |