• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase
您的位置:首页 > 数据库 >Mysql > MySQL 客户端不输入用户名和密码直接连接数据库的2个方法

MySQL 客户端不输入用户名和密码直接连接数据库的2个方法

作者: 字体:[增加 减小] 来源:互联网 时间:2017-05-11

通过本文主要向大家介绍了mysql数据库客户端,mysql客户端,mysql客户端navicat,mysql客户端下载,mysql客户端工具等相关知识,希望本文的分享对您有所帮助

有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 .
</div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • MySQL数据库服务器端核心参数详解和推荐配置
  • MySQL 客户端不输入用户名和密码直接连接数据库的2个方法

相关文章

  • 2018-12-05关于pt-heartbeat(percona toolkit)的实例代码
  • 2018-12-05sql格式化工具集合
  • 2018-12-05什么是Mysql中的视图?对Mysql中视图的详解
  • 2018-12-05SQL2008中SQL应用之-阻塞(Blocking)应用分析
  • 2017-05-11Mysql中的Datetime和Timestamp比较
  • 2017-05-11MySQL数据库十大优化技巧
  • 2018-12-05spring事务隔离级别、传播行为以及spring+mybatis+atomikos实现分布式事务管理
  • 2017-05-11mysql4.0升级到mysql5(4.1),解决字符集问题
  • 2018-12-05Mac环境mysql5.7.21 utf8编码问题下详解
  • 2018-12-05sqlserver 临时表 Vs 表变量 详细介绍

文章分类

  • MsSql
  • Mysql
  • oracle
  • MariaDB
  • DB2
  • SQLite
  • PostgreSQL
  • MongoDB
  • Redis
  • Access
  • 数据库其它
  • sybase
  • HBase

最近更新的内容

    • linux修改mysql数据库文件的路径
    • php中反射如何获取一个类中的方法详解
    • MySQL高级十三——通过索引优化SQL
    • Mysql的基础使用之MariaDB安装方法详解_MySQL
    • MySQL--数据开发经典与解决方案
    • Linux下MySQL数据库自动备份的实用方法
    • mysql数据库插入速度和读取速度的调整记录
    • Mysql主从同步备份策略分享
    • MySql增加用户、授权、修改密码等语句
    • 详细介绍mysql中的分区

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有