简体   繁体   English

使用xampp连接到MySQL

[英]connect to mySQL using xampp

Im using xampp control on macbook and trying to connect to 'localhost/phpmyadmin'. 我在Macbook上使用xampp控件,并尝试连接到“ localhost / phpmyadmin”。 I have apache and mySQL both running but im getting an error 我有Apache和MySQL都在运行,但我收到一个错误

#1 - Can't create/write to file '/var/folders/kb/6g_npz7s1511w39k7v224gq80000gn/T/#sql4e6_1_2.MYI' (Errcode: 13)

Any ideas about what this might be or how i could connect? 关于这可能是什么或我如何连接的任何想法?

Usually you'd get that error because the directory that MySQL is using to write temp files to isn't writeable by the mysql user; 通常,您会得到该错误,因为MySQL用户无法写入MySQL用于将临时文件写入的目录。 usually that directory would be /var/tmp or something similar. 通常该目录是/var/tmp或类似的目录。 Try starting mysql with the --tmp-dir=/var/tmp and see if it still complains. 尝试用--tmp-dir=/var/tmp启动mysql,看看它是否仍然报错。 See http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_tmpdir 参见http://dev.mysql.com/doc/refman/5.0/en/server-options.html#option_mysqld_tmpdir

通过选择checkport ...检查apache的端口....,然后在浏览器中将URL设置为:localhost :(端口号)/ phpmyadmin

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM