默认情况下,每当我加载一个表时,phpMyAdmin就会显示30行(查询包含"LIMIT 30").我通常希望看到(最多)几百行.
有没有办法更改默认设置?
upload_max_filesize,php.ini但没有任何区别.我正在使用Windows XP.我在phpMyAdmin中使用其内置的create table功能创建了一个表,我的数据库名是ddd.
它生成以下代码:
CREATE TABLE `ddd`.`mwrevision` (
`asd` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`sddd` INT NOT NULL
) ENGINE = INNODB;
Run Code Online (Sandbox Code Playgroud)
并显示以下错误:
MySQL said:
#1146 - Table 'ddd.mwrevision' doesn't exist
Run Code Online (Sandbox Code Playgroud)
可能是什么问题?
我想将一个SQL文件(大小> 500MB)导入数据库.我已经在我的电脑上打印了.Phpmyadmin在这个尺寸上效果不佳.我更改了php.ini中的所有参数(max_upload_size等).但它对我不起作用.所以我想通过命令行导入它.
我使用这些命令导入文件:
mysql -u root -p sysdat < D:\Nisarg\ISPC\Database\sysdat.sql
mysql -u root -p -D sysdat < D:\Nisarg\ISPC\Database\sysdat.sql
mysql -u root sysdat < D:\Nisarg\ISPC\Database\sysdat.sql -p
Run Code Online (Sandbox Code Playgroud)
这些都不起作用.
这似乎是多余的,但我无法找到正确的解决方案.
我无法使用mysql控制台登录mysql.它要求输入密码,我不知道我实际输入了什么.(有没有办法获取密码或更改密码?)这就是我的config.inc外观.
当我尝试打开phpmyadmin时,我收到此错误(#1045 - 拒绝访问用户'root'@'localhost'(使用密码:YES))
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] …Run Code Online (Sandbox Code Playgroud) 我在Windows XP上使用wamp server 2.0.每当我创建一个名称中包含一些大写的表时,它就会转换为小写.
例如:
I create: UserInfo
phpmyadmin convert it to: userinfo
Run Code Online (Sandbox Code Playgroud)
我在办公室使用ubuntu/phpmyadmin,但这个问题确实存在.
从哪里可以解决这个问题.谢谢
CREATE TABLE Properties
(
ID int AUTO_INCREMENT,
language int,
stonecolor int,
gamefield int,
UserID int,
PRIMARY KEY(ID),
FOREIGN KEY(language) REFERENCES Language(ID),
FOREIGN KEY(stonecolor) REFERENCES StoneColor(ID),
FOREIGN KEY(gamefield) REFERENCES GameField(ID)
) ENGINE = INNODB;
CREATE TABLE User
(
ID int AUTO_INCREMENT,
vorname varchar(30) NOT NULL,
name varchar(30) NOT NULL,
email varchar(40) NOT NULL,
password varchar(40) NOT NULL,
nickname varchar(15) NOT NULL,
score int,
isadmin int DEFAULT 0,
gamesPlayed int,
properties int NOT NULL,
PRIMARY KEY(ID),
UNIQUE (email),
UNIQUE (nickname)
) ENGINE …Run Code Online (Sandbox Code Playgroud) 我正在尝试查找我的数据库是否有一个名为的列sort_method.我浏览过论坛,但似乎无法找到正确的答案.我的数据库有超过300个表,因此手动查找它不是一个选项.
我正在使用phpMyAdmin - SQL查询
我安装phpMyAdmin 4.0.4.1在我当地的开发环境中,我设置auth_type为config.此外,我通过此设置提供身份验证要求:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['password'] = 'somepassword';
Run Code Online (Sandbox Code Playgroud)
但过了一段时间,它是空闲的,如果我点击它的任何链接,它会显示一个错误token mismatch,有没有办法增加它的TTL?还是永久地活着?

上图显示错误.
我需要修改文件/etc/httpd/conf.d/phpMyAdmin.conf
以允许远程用户(不仅是localhost)登录
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
<Directory /usr/share/phpMyAdmin/>
<IfModule mod_authz_core.c>
# Apache 2.4
<RequireAny>
Require ip 127.0.0.1
Require ip ::1
</RequireAny>
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Deny from All
Allow from 127.0.0.1
Allow from ::1
</IfModule>
</Directory> …Run Code Online (Sandbox Code Playgroud)