国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > MySQL > 正文

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

2020-01-19 00:19:45
字體:
來源:轉載
供稿:網友

有2個方法
一、可以修改my.ini 配置參數(linux下面是 my.cnf);
[quote][client]
port=3306
default-character-set=utf8
host=localhost
user=root
password=1[/quote]
具體的其他參數都可以在這里修改
二、可以修改環境變量
MYSQL_HOST 代表主機名
USER 為用戶名
MYSQL_PWD 為密碼
更多的參數請自行查看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 .
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 西昌市| 林甸县| 呼和浩特市| 丹巴县| 永昌县| 隆子县| 岑巩县| 沅江市| 曲水县| 苏州市| 万盛区| 富平县| 新蔡县| 莱州市| 嘉鱼县| 台前县| 阜南县| 呼和浩特市| 马边| 博乐市| 宜都市| 绥芬河市| 噶尔县| 宜宾市| 孝义市| 敖汉旗| 鄄城县| 高淳县| 江口县| 南郑县| 易门县| 溆浦县| 裕民县| 阳西县| 镶黄旗| 尉氏县| 彰武县| 五家渠市| 逊克县| 苏州市| 乐昌市|