mysql连接

--连接mysql
    communication protocols
    protocol                  types of connections             supported
    tcp/ip                        local,remote                          all
    unix socket file           local only                           unix only
    named pipe              local only                             windows only
    shared memory        local only                              windows only
   
    tcp/ip connection are supported any mysql server
   unless the server is started with --skip-networking option
  
   unix socket file connects are supported by all unix servers.
  
   named-pipe connections are support only on windows and only if you use one of the servers
   that has -nt in its name (mysql-nt,mysql-max-nt).however,named pipes are disabled by default.
   to enable named-pipe connections ,you must start the -nt server with --enable-named-pipe option.
  
   shared-memory connections are supported by all windows servers.but are disables by default to
   enable shared-memory connections,you must start the server with the --shared-momory option.
 
 mysql 常用客户端工具
  mysql
  mysqladmin
  mysqlimport  proviides a command-line interfact to the load data infile statement.
  mysqldump  for dumping the contents of database and tables. it's useful for making backups or for copying database to other machines.
  
  连接远程服务器
  mysql -uroot -p -h localhost -S /tmp/mysql3306.socket -P 3006

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24577884/viewspace-777407/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/24577884/viewspace-777407/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值