8/04/2014

lampp/xampp in ubuntu

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

localhost
Apache/2.4.3 (Unix) OpenSSL/1.0.1c PHP/5.4.7
解决方式:
  1. In the linux terminal navigate to your lampp directory.
    cd /opt/lampp
    
  2. In the command line type:
    sudo chmod 777 -R htdocs
  3. sudo chmod 755 -cR phpmyadmin //ubuntu 15.04
tiny配置:
数据库名称:shop
账户:admin
密码:
管理员:admin
管理员密码:123456

6/17/2014

运行环境:
ubuntu14.04
xampp
启动 sudo /opt/lampp/lampp start
phpmyadmin 用户名lampp 密码无

connect.php 链接数据库 localhost 用户 admin 密码 无 数据库 test 




SET sql_mode='NO_AUTO_VALUE_ON_ZERO'模式对AUTO_INCREMENT列的影响。
一般情况,你可以向该列插入NULL或0生成下一个序列号。NO_AUTO_VALUE_ON_ZERO禁用0,因此只有NULL可以生成下一个序列号。

表格透明
save image
table style="filter:alpha(opacity=60)" width="300" border="0" align="center" cellpadding="0" cellspacing="1">
mysql ERROR 1017:Can't find file: '/xxx.frm' 
解决方法:cd到xxx.frm文件所在目录下,执行一下命令:chown mysql.mysql * 将所有文件的权限都改过来就可以了!