在mac上配置mysql
2011-09-07 17:15
211 查看
在mac上配置mysql用brew其实还算简单。
直接brew install mysql就好了。
当然,配置的时候需要mysql_install_db一下,这时候如果报错
51391-MAC:local lin.boyan$ mysql.server start
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/51391-MAC.local.pid).
应该是因为/usr/local/var的权限问题。应该chown一下。
于是好了以后是
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
mysql_install_db --datadir=/usr/local/var/mysql --user=$USER
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
51391-MAC:local lin.boyan$ mysql_install_db --datadir=/usr/local/var/mysql --user=$USER
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
直接brew install mysql就好了。
当然,配置的时候需要mysql_install_db一下,这时候如果报错
51391-MAC:local lin.boyan$ mysql.server start
Starting MySQL
... ERROR! The server quit without updating PID file (/usr/local/var/mysql/51391-MAC.local.pid).
应该是因为/usr/local/var的权限问题。应该chown一下。
于是好了以后是
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
mysql_install_db --datadir=/usr/local/var/mysql --user=$USER
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
51391-MAC:local lin.boyan$ mysql_install_db --datadir=/usr/local/var/mysql --user=$USER
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h 51391-MAC.local password 'new-password'
Alternatively you can run:
./bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl
Please report any problems with the ./bin/mysqlbug script!
相关文章推荐
- 在Mac OS X中配置Apache + PHP + MySQL
- mac 下配置mysql
- <php+mysql>Mac配置APACHE+PHP+MYSQL+PHPMYADMIN
- MAC下安装与配置MySQL
- Mac下的mysql+hibernate配置下中文问题的解决
- MAC下用homebrew安装及配置apache、php和mysql
- MAC下MySQL创建my.cnf配置文件及secure_file_priv为null问题
- MAC下安装与配置MySQL
- 关于Mac安装MySQL和MySQLWorkbench的初始密码,环境配置问题总结
- 数据库之Mac下配置MySQL
- Mac上安装MySql与简单配置
- Mac下安装与配置MySQL
- 在Mac OS X上安装配置Apache + PHP + MySQL环境
- Mac 配置mysql 别名 alias
- 【MySQL数据库开发之一】Mac下配置安装数据库-MySQL
- MAC下mysql的安装配置
- MAC下安装与配置MySQL
- Install Apache/PHP/MySQL on Mac Snow Leopard--为了方便以后配置
- MAC下安装与配置MySQL
- os mac apache+php+mysql环境配置