码迷,mamicode.com
首页 > 数据库 > 详细

mac mysql

时间:2019-01-06 16:27:34      阅读:175      评论:0      收藏:0      [点我收藏+]

标签:lsof   off   node   welcome   statement   测试   inpu   use   brew   

启动

$ mysql.server start
Starting MariaDB
.190106 15:41:13 mysqld_safe Logging to '/usr/local/var/mysql/mbp.err'.
190106 15:41:13 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
 SUCCESS!

测试

$ lsof -i tcp:3306
COMMAND   PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
mysqld  13227 gavin   23u  IPv6 0x1e91d7e2467e6349      0t0  TCP *:mysql (LISTEN)

连接

$ mysql -u root
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 9
Server version: 10.3.11-MariaDB Homebrew

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

mac mysql

标签:lsof   off   node   welcome   statement   测试   inpu   use   brew   

原文地址:https://www.cnblogs.com/brookin/p/10229109.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!