php访问mysql数据库的问题

数据库服务和管理,MySQL/PostgreSQL/Oracle/Sybase 等
回复
shirazbj
帖子: 333
注册时间: 2010-01-30 18:38
送出感谢: 0
接收感谢: 0

php访问mysql数据库的问题

#1

帖子 shirazbj » 2011-05-09 12:25

我正在用ubuntu8.1服务器+win-xp客户试Projector这个东西(这里下的http://www.eckxmediagroup.com/free-simple-php- ... anagement/

用mysqladmin创建了一个mysql数据库。

在用Projector的setup.php输入用户和密码登陆时,报错说:

Fatal error: Class 'login' not found in /var/www/projector/action/setup/setup.php on line 77

那第77行如下:

$_login = new login($_mysql);

我想知道创建了数据库后是不是还要用mysqladmin设置谁能操错它,然后才能通过php管理?还是php也可以设置谁能操错那个数据库?

谢谢

附一些说明:

Projector is a very simple project management system that is portable, light and robust. It is an ideal setup for a team of less than 10 members. There may be a great lack of features but the features that it does have works great!

Requirements
------------

- Apache webserver (http://www.apache.org)
- PHP5 (http://www.php.net)
- MySQL5 (http://www.mysql.org)

Installation Procedure
----------------------

1) Unzip the entire projector archive to a place where you can access it with
your webserver.

2) Create a database in mysql called "projector".

3) Edit the file projector/config/define.php, and set the mysql variables to match your setup.

example:

define('MYSQLHOST', 'localhost');//mysql host
define('MYSQLUSER', 'mysql_username');//mysql username
define('MYSQLPASS', 'mysql_password');//mysql password
define('MYSQLDB', 'projector');// name of mysql database

You may also need to change

define('CLIENTROOT', '/projector');//path to projector directory

depending on where you place the projector directory on your server.

4) After editing projector/config/define.php,
point your browser to https://your-server/path-to-projector-d ... /index.php

Enter in a email address for your username and a password and hit "Yes".
Once you press the "Yes" button, it will populate the database for you and
log you in under the username and password that you entered on setup/index.php

5) After you have successfully run https://your-server/path-to-projector-d ... /index.php
your login to projector is: https://your-server/path-to-projector-d ... /index.php
免费NanoCAD=免费DraftSight+可API编程(用.net或者vbs和java脚本)=白白 AutoCAD
http://nanocad.com/
scutdk
帖子: 298
注册时间: 2009-07-25 19:23
送出感谢: 3 次
接收感谢: 0

Re: php访问mysql数据库的问题

#2

帖子 scutdk » 2011-05-10 22:59

Fatal error: Class 'login' not found in

提示没有找到类,不是mysql的问题吧。应该是include少了文件吧?

Ubuntu 桌面培训- 全中文官方文档,含汉化截图,提供PDF
回复

回到 “数据库管理”