我正在尝试让本地mysql在我的macos机器上运行。我按照以下指示行事:
我是通过自制安装的。
我试过重新安装mysql
我有两个用户:一个负责安装设备的管理员,一个用于开发和正常活动的普通用户帐户。也许这就是导致这些问题的原因
我所期望的:
每次我像以前一样启动我的macbook (不管我登录的是哪个用户帐户,最好是),MySQL就会运行。
错误:
当我试图通过Sequel或直接运行mysql -u root连接时,我会得到错误:ERROR 2002 (HY000): Can't connect to local MySQL server through soc
首先,让我说,我已经阅读并尝试了我在网上找到的所有方法和堆栈溢出。
当我试图跑的时候我得到了什么
mysql.server start
或
sudo /usr/local/mysql/support-files/mysql.server start
是
ERROR! The server quit without updating PID file (/usr/local/var/mysql/hostname.local.pid).
当我试图逃跑时,我得到了什么:
mysql
是
ERROR 2002 (HY000): Can't connect to local MySQL serv
我使用的是macOS 12.0.1版本。所以,所发生的是,我重新安装了XAMPP,所以当我单击started时,它启动并显示了我的IP地址。接下来,当我访问服务并尝试启动所有Apache、MySQL和ProFTPD时,它们都没有启动,日志中显示了如下内容:
ERROR: Failed to start "proftpd": cannot start service: bash: /opt/lampp/ctlscript.sh: No such file or directory
ERROR: Failed to start "mysql": cannot st
刚刚安装了MariaDB (带自制软件)。一切看起来都正常,但我不知道如何让它在我的Mac上启动时自动启动。我找不到任何与Mac相关的文档。
安装输出显示:
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
我想我不知道哪里是合适的地方。
安装MySQL时收到以下警告:
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
已使用以下命令在安全模式下启动MySQL:
我能够成功地将php54和mysql安装到我的系统上。但是,当我试图通过在终端中运行php-fpm来启动服务器时,我得到了一个错误消息...
1.ERROR: failed to open configuration file '/private/etc/php-fpm.conf': No such file or directory (2)
2.ERROR: failed to load configuration file '/private/etc/php-fpm.conf'
3.ERROR: FPM initialization failed
但是,
当通过自制(即brew install mysql@5.7)在MacOS Mojave上安装mysql时,一个看似成功的安装会打印以下说明:
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -uroot
当运行mysql
在我的机器上安装mysql2 gem时遇到了问题。
我有OSX10.8和最新的Xcode,mySql是通过Homebrew安装的。使用最新的RVM安装的所有红宝石。
我可以在Ruby2.0.0-P195下安装mysql2
[~]$ rvm use 2.0.0 [ruby-1.9.3-p429]
Using /Users/aselder/.rvm/gems/ruby-2.0.0-p195
[~]$ gem in mysql2
我把OS升级到高塞拉。
升级后,我发现一些服务不能正常工作,使用MySQL。
我试着通过
mysql -u根-p
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
因此,我试图通过以下方式重新启动mysql服务
brew服务启动mysql
Could not find domain for
Error: Failure while executing; `/bin/launchctl enable gui/503/hom
下面这两个有什么不同?
brew services start mysql
mysql.server start
我使用的是自制mac os mysql(5.7.21)。
如果我使用以下命令打开mysql服务器
brew services start mysql
然后检查mysql服务器是否打开,
brew services list
结果是
mysql started
顺便说一下,如果我使用命令打开mysql服务器
mysql.server start
然后检查mysql服务器是否打开,
brew services list
结果是
mysql stopped
它们都成功地打开了mysql
我需要在安装了M1的MacBook上安装特定版本的MySQL (5.7)。
我正试着用Homebrew做到这一点。
brew install mysql@5.7
输出:
We've installed your MySQL database without a root password. To secure it run:
mysql_secure_installation
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -u