我将我的XAMPP从7.1.24升级到7.4.2。首先我使用uninstall.app卸载我的XAMPP,然后安装我的新的XAMPP,然后我检查我的phpmyadmin一切正常。但当我打开我的一个数据库时,它显示的是Table doesn't exists in engine。我试着删除数据库,上面写着
#1558 - Column count of mysql.proc is wrong.
Expected 21, found 20.
Created with MariaDB 100108, now running 100411.
Please use mysql_upgrade to fix this error我搜索了一下mysql_upgrade,人们说只要把它写在终端或命令上就行了。我试过了,但是显示为command not found,然后我发现人们说我应该在~/.bash_profile上做这个export PATH=${PATH}:/usr/local/mysql/bin,但问题是/usr/local/上没有mysql文件夹。我该怎么办?我使用的是macOS 10.15.2。
发布于 2020-11-01 23:09:51
如果您使用的是XAMPP,并且可以在applications文件夹中看到XAMPP文件夹,则可以运行以下命令:
cd /Applications/XAMPP/xamppfiles/bin/
sudo mysql_upgrade您应该会看到类似这样的内容:
sudo ./mysql_upgrade
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
Phase 4/7: Running 'mysql_fix_privilege_tables'
Phase 5/7: Fixing table and database names
Phase 6/7: Checking and upgrading tables
Processing databases
app
app.areas OK
app.departments OK
app.kiosks OK
Phase 7/7: Running 'FLUSH PRIVILEGES'
OK注意:在XAMPP - https://community.apachefriends.org/f/viewtopic.php?f=17&t=78386&sid=3d3824dd0b6aa2e33c3adc73c744b4b4中似乎有一个bug
发布于 2020-04-08 02:21:10
打开终端应用程序,运行brew upgrade mysql命令,可能会有所帮助。
如果你有command not found: brew,这意味着你的苹果电脑上没有安装brew,你应该用下面的命令安装它:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)“
然后重试用于升级mysql的第一个命令
https://stackoverflow.com/questions/60116955
复制相似问题