主要是配置config.inc.php文件:$cfg['PmaAbsoluteUri'] = 'http://192.168.0.4/mysql/';// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only配置这几参数就可以了,看看后面的注释就明白什么意思了
主要是这三个变量
$cfg['PmaAbsoluteUri']
$cfg['Servers'][$i]['user']
$cfg['Servers'][$i]['password'] 其它默认即可,祝好运!
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = '123456'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only配置这几参数就可以了,看看后面的注释就明白什么意思了
主要是这三个变量
$cfg['PmaAbsoluteUri']
$cfg['Servers'][$i]['user']
$cfg['Servers'][$i]['password'] 其它默认即可,祝好运!
解决方案 »
- 我做一个xls文件上传 本地正常 爱服务器不正常 ,多了5条数据
- 谁能跟我解释下file_open_contents(),curl,snoopy三个的本质啊?
- 我要更新一个表,但其中一个字段是从其他表中查出来的结果,有没有直接的sql语句?
- 已经安装Zend .但是还是提示Attention: Zend Optimizer not Installed
- 有谁知道wssp文件是什么文件?
- smarty section 循环变量自动生成问题.
- 求教:数据库函数返回值问题.
- 动态网页与数据库的运行时连接和设计时连接有何不同?
- phpMyAdmin如何建立数据库?
- PHP-Barcode 生成条形码 下面文字怎么隐藏或去掉
- 数据库里提出的数据,在表格内不能自动换行
- 怎样才能使网页刷新时,不使“submit”按钮提交动作???
把 phpmyadmin 目录设置虚拟换行目录,在浏览器中输入http://localhost/phpmyadmin/就可以了。
你说的设置虚拟目录是怎么回事?
设置虚拟目录:(在httpd.conf中设置)
Alias /phpmyadmin "xxx/../phpadmin"<Directory "xxx/../phpadmin">
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>
这一项怎么配置。
* Your phpMyAdmin url
*
* Complete the variable below with the full url ie
* http://www.your_web.net/path_to_your_phpMyAdmin_directory/
*
* It must contain characters that are valid for a URL, and the path is
* case sensitive on some Web servers, for example Unix-based servers.
*
* In most cases you can leave this variable empty, as the correct value
* will be detected automatically. However, we recommend that you do
* test to see that the auto-detection code works in your system. A good
* test is to browse a table, then edit a row and save it. There will be
* an error message if phpMyAdmin cannot auto-detect the correct value.
*
* If the auto-detection code does work properly, you can set to TRUE the
* $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
*/
$cfg['PmaAbsoluteUri'] = '';
上面的是说明,我的是空的,