mac mysql
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mac mysql相关的知识,希望对你有一定的参考价值。
启动
$ 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的主要内容,如果未能解决你的问题,请参考以下文章
连接MySQL出现错误:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)(代码片段
使用 json rereiver php mysql 在片段中填充列表视图
关于mysql驱动版本报错解决,Cause: com.mysql.jdbc.exceptions.jdbc4Unknown system variable ‘query_cache_size(代码片段