启动服务器上的MySql真的很沮丧

时间:2015-02-11 01:56:55

标签: mysql osx-yosemite

我一直在试图解决这个问题两天,请帮忙。

我相对来说是一个noobie,所以请耐心等待......

我使用最笨的方式安装了MySql,最新版本,即dmg文件,以及来自MySql网站的工作台。

我第一次使用系统偏好来启动服务器,一切都很顺利。然后,我尝试使用示例方案创建示例数据库并从MySql站点插入语句文件。但是当我尝试执行这两个文件时,我被提示输入密码,我不知道当时正在进行什么,所以我关闭了所有内容,Google搜索了如何为root用户设置我自己的密码帐户MySql,并使用mysqldadmin setpassword ...重置root密码。

然后,噩梦开始......从那时起,无论我尝试使用哪种方法来启动服务器,都没有运气,即系统偏好,手动。 (我确实正确设置了PATH环境变量btw)。

所以,这里是我遇到的两个错误, 如果我只是使用sudo mysqld:

2015-02-10 20:45:58 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-02-10 20:45:58 49381 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.6.23-osx10.8-x86_64/data/ is case insensitive
2015-02-10 20:45:58 49381 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2015-02-10 20:45:58 49381 [ERROR] Aborting

2015-02-10 20:45:58 49381 [Note] Binlog end
2015-02-10 20:45:58 49381 [Note] mysqld: Shutdown complete

如果我尝试了这个sudo mysqld -u root -p mypassword:

2015-02-10 20:10:22 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2015-02-10 20:10:22 48437 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql-5.6.23-osx10.8-x86_64/data/ is case insensitive
2015-02-10 20:10:22 48437 [Note] Plugin 'FEDERATED' is disabled.
2015-02-10 20:10:22 48437 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-02-10 20:10:22 48437 [Note] InnoDB: The InnoDB memory heap is disabled
2015-02-10 20:10:22 48437 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-02-10 20:10:22 48437 [Note] InnoDB: Memory barrier is not used
2015-02-10 20:10:22 48437 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-02-10 20:10:22 48437 [Note] InnoDB: Using CPU crc32 instructions
2015-02-10 20:10:22 48437 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2015-02-10 20:10:22 48437 [Note] InnoDB: Completed initialization of buffer pool
2015-02-10 20:10:22 48437 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35
2015-02-10 20:10:22 48437 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
2015-02-10 20:10:22 48437 [Note] InnoDB: Retrying to lock the first data file

我尝试在my.cnf文件中进行一些配置更改,但我甚至无法在/ etc /目录下找到它...

任何帮助都会非常感激,我真的开始讨厌自己...... T.T

P.S。当我尝试使用mysqld-safe时,看起来服务器已启动,但在工作台中,它清楚地说服务器仍然停止...

0 个答案:

没有答案
相关问题