我正在尝试使用XAMPP在MySQL中设置我的数据库。我通过localhost上的phpMyAdmin(Apache正在运行)这样做。我唯一的操作就是输入一个新的,未使用的数据库名称,单击创建并...
Error
SQL query: DocumentationEdit Edit
SELECT MAX(version) FROM `phpmyadmin`.`pma__tracking` WHERE `db_name` = 'stuff_tessss' AND `table_name` = '' AND FIND_IN_SET('CREATE DATABASE',tracking) > 0
MySQL said: Documentation
数据库显示在数据库列表中。如果您点击一个,则需要一天和一天不加载。
我已尝试在堆栈和其他地方研究和实施其他1932错误解决方案,但无济于事。
以下是我正在使用的技术的以下版本:
我已经阅读了各种解决方案,例如在Linux中运行它,或者使用旧版本的XAMPP等。我认为有一个聪明的人可能知道解决方案。我主要是在努力弄清楚研究的地方时也很困难。
如果有人能指出我正确的方向,我会非常感激!
答案 0 :(得分:17)
如果有人仍然面临这个问题,对我来说,在我之前将 mysql/data
更改为 mysql/backup
以解决另一个问题后,它开始发生。
我尝试了很多方法,最后发现解决方法很简单!打开PhPMyAdmin(在我的情况下正在加载)后,只需单击PhPMyAdmin徽标正下方的此图标(重置会话)。一键解决问题!
对我来说,错误代码是#1142
PhpMyAdmin 重置会话
答案 1 :(得分:4)
最后,我找到了解决方案
我们可以发现确实存在表格' pma__tracking'当我们扩展phpmyadmin数据库时。
但系统错误调用#1932 - 表' phpmyadmin.pma__tracking'在发动机中不存在。
因此,首先尝试删除旧的pma __ *数据库,然后再重新配置它们。
1.在xampp的安装路径中删除错误的表并删除var / mysql / phpmyadmin /中的所有文件,类似于pma__bookmark.frm / pma__bookmark.ibd ...
2.重新安装位于phpmyadmin / sql /中的phpmyadmin的sql,类似' create_tables.sql',用mysql<运行它们。 create_table.sql等。
然后它工作。
答案 2 :(得分:4)
我遇到了同样的错误,将mysql/data
文件夹更改为另一个文件夹时发生了错误
我只是将mysql/data
文件夹中的所有文件夹复制到一个新位置,除了两个文件。这些是ib_logfile0
和ib_logfile1
;这些是在启动MySQL服务器时自动创建的。
这对我有用。
答案 3 :(得分:1)
简而言之,只需将第50-69行的config.inc.php内容替换为......
$cfg['Servers'][$i]['pma__bookmark'] = 'pma__bookmark';
$cfg['Servers'][$i]['pma__relation'] = 'pma__relation';
$cfg['Servers'][$i]['pma__table_info'] = 'pma__table_info';
$cfg['Servers'][$i]['pma__table_coords'] = 'pma__table_coords';
$cfg['Servers'][$i]['pma__pdf_pages'] = 'pma__pdf_pages';
$cfg['Servers'][$i]['pma__column_info'] = 'pma__column_info';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__history';
$cfg['Servers'][$i]['pma__table_uiprefs'] = 'pma__table_uiprefs';
$cfg['Servers'][$i]['pma__tracking'] = 'pma__tracking';
$cfg['Servers'][$i]['pma__userconfig'] = 'pma__userconfig';
$cfg['Servers'][$i]['pma__recent'] = 'pma__recent';
$cfg['Servers'][$i]['pma__users'] = 'pma__users';
$cfg['Servers'][$i]['pma__usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['pma__navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['pma__savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['pma__central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['pma__designer_coords'] = 'pma__designer_coords';
$cfg['Servers'][$i]['pma__designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['pma__export_templates'] = 'pma__export_templates';
$cfg['Servers'][$i]['pma__favorite'] = 'pma__favorite';
答案 4 :(得分:1)
ErrorCode#1932 在Ubuntu 14.04 Trusty上为我工作
import UIKit
import PlaygroundSupport
import Photos
import PhotosUI
class PLView: UIView {
let image: UIImage
let imageURL: URL
let videoURL: URL
let liveView: PHLivePhotoView
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
init(image: UIImage, imageURL: URL, videoURL: URL) {
self.image = image
self.imageURL = imageURL
self.videoURL = videoURL
let rect = CGRect(x: 0, y: 0, width: 300, height: 400)
self.liveView = PHLivePhotoView(frame: rect)
super.init(frame: rect)
self.addSubview(self.liveView)
}
func prepareLivePhoto() {
makeLivePhotoFromItems { (livePhoto) in
self.liveView.livePhoto = livePhoto
print("\nReady! Click on the LivePhoto in the Assistant Editor panel!\n")
}
}
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
print("\nClicked! Wait for it...\n")
self.liveView.startPlayback(with: .full)
}
private func makeLivePhotoFromItems(completion: @escaping (PHLivePhoto) -> Void) {
PHLivePhoto.request(withResourceFileURLs: [imageURL, videoURL], placeholderImage: image, targetSize: CGSize.zero, contentMode: .aspectFit) {
(livePhoto, infoDict) -> Void in
if let canceled = infoDict[PHLivePhotoInfoCancelledKey] as? NSNumber,
canceled == 0,
let livePhoto = livePhoto
{
completion(livePhoto)
}
}
}
}
let plview = PLView(image: UIImage(named: "IMG_0001.JPG")!,
imageURL: Bundle.main.url(forResource: "IMG_0001", withExtension: "JPG")!,
videoURL: Bundle.main.url(forResource: "IMG_0001", withExtension: "mov")!)
PlaygroundPage.current.needsIndefiniteExecution = true
PlaygroundPage.current.liveView = plview
plview.prepareLivePhoto()
答案 5 :(得分:1)
这是我对这个问题的经验,也许它可以帮到你:
我复制了/data
文件夹中的所有文件夹和文件,以便从db
进行备份。
当我切换到另一台计算机的Xampp
时,我开始复制之前 phpmyadmin /data
之前复制的所有文件夹和文件夹。
所以当我完成这个问题时,我发生了这个问题。
要解决此问题:
1 - 我从/data
phpmyadmin
文件夹进行了备份,只复制了与我想要备份的表名相同的文件夹。
2 - 卸载Xampp。
3 - 重新安装Xampp。
4 - 复制所有文件夹保留在mysql/data
文件夹内的第1步。此文件夹只是数据库表,请小心不要触摸其他文件和文件夹,或在复制时替换任何内容。
答案 6 :(得分:1)
这是由于有时会话查询可能包含无效字符,请尝试单击PHPMYADMIN中突出显示的图标,它将得到解决,因为会话值已重置为默认值 See Image
答案 7 :(得分:0)
make change in changes in /opt/lampp/phpmyadmin/config.inc.php
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use setup/
*
* All directives are explained in documentation in the doc/ folder
* or at <http://docs.phpmyadmin.net/>.
*
* @package PhpMyAdmin
*/
/**
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/**
* Servers configuration
*/
$i = 0;
/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/**
* phpMyAdmin configuration storage settings.
*/
/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][1]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][1]['controluser'] = 'pma';
$cfg['Servers'][1]['controlpass'] = '';
$cfg['Servers'][1]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][1]['relation'] = 'pma_relation';
$cfg['Servers'][1]['userconfig'] = 'pma_userconfig';
$cfg['Servers'][1]['table_info'] = 'pma_table_info';
$cfg['Servers'][1]['column_info'] = 'pma_column_info';
$cfg['Servers'][1]['history'] = 'pma_history';
$cfg['Servers'][1]['recent'] = 'pma_recent';
$cfg['Servers'][1]['table_uiprefs'] = 'pma_table_uiprefs';
$cfg['Servers'][1]['tracking'] = 'pma_tracking';
$cfg['Servers'][1]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][1]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][1]['designer_coords'] = 'pma_designer_coords';
// $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
// $cfg['Servers'][$i]['users'] = 'pma__users';
// $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
// $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
// $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
// $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
// $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
// $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
/* Contrib / Swekey authentication */
// $cfg['Servers'][$i]['auth_swekey_config'] = '/etc/swekey-pma.conf';
/**
* End of servers configuration
*/
/**
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/**
* Whether to display icons or text or both icons and text in table row
* action segment. Value can be either of 'icons', 'text' or 'both'.
* default = 'both'
*/
//$cfg['RowActionType'] = 'icons';
/**
* Defines whether a user should be displayed a "show all (records)"
* button in browse mode or not.
* default = false
*/
//$cfg['ShowAll'] = true;
/**
* Number of rows displayed when browsing a result set. If the result
* set contains more rows, "Previous" and "Next".
* Possible values: 25, 50, 100, 250, 500
* default = 25
*/
//$cfg['MaxRows'] = 50;
/**
* Disallow editing of binary fields
* valid values are:
* false allow editing
* 'blob' allow editing except for BLOB fields
* 'noblob' disallow editing except for BLOB fields
* 'all' disallow editing
* default = 'blob'
*/
//$cfg['ProtectBinary'] = false;
/**
* Default language to use, if not browser-defined or user-defined
* (you find all languages in the locale folder)
* uncomment the desired line:
* default = 'en'
*/
//$cfg['DefaultLang'] = 'en';
//$cfg['DefaultLang'] = 'de';
/**
* How many columns should be used for table display of a database?
* (a value larger than 1 results in some information being hidden)
* default = 1
*/
//$cfg['PropertiesNumColumns'] = 2;
/**
* Set to true if you want DB-based query history.If false, this utilizes
* JS-routines to display query history (lost by window close)
*
* This requires configuration storage enabled, see above.
* default = false
*/
//$cfg['QueryHistoryDB'] = true;
/**
* When using DB-based query history, how many entries should be kept?
* default = 25
*/
//$cfg['QueryHistoryMax'] = 100;
/**
* Whether or not to query the user before sending the error report to
* the phpMyAdmin team when a JavaScript error occurs
*
* Available options
* ('ask' | 'always' | 'never')
* default = 'ask'
*/
//$cfg['SendErrorReports'] = 'always';
/**
* You can find more configuration options in the documentation
* in the doc/ folder or at <http://docs.phpmyadmin.net/>.
*/
答案 8 :(得分:0)
我在OSX中遇到了同样的问题。
我试图更换像这样的东西
$cfg['Servers'][$i]['usergroups'] to $cfg['Servers'][$i]['pma__usergroups']
...
它在safari中有效但在chrome中仍然失败
但所谓的工作&#39;在safari中可以获得已修改的功能根本不起作用的信息
但是,工作&#39;意味着我可以访问左侧列出的dbs
我认为这个问题可能是新版XAMPP中的一个错误,因为谷歌的#1932问题是新的并且蓬勃发展。
您可以尝试使用旧版本的XAMPP,直到错误得到解决
http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/5.6.12/
希望它可以帮到你。
答案 9 :(得分:0)
你需要download以前的版本,xampp实际上在最新版本中出现了错误。
祝你好运!
答案 10 :(得分:0)
如果上述所有解决方案均无效,请尝试:
添加$ i = 1;在/ *服务器配置* /
之后代替phpmyadmin config.inc.php文件中的$ i = 0
在本地Windows服务器上运行XAMPP,我的mysql数据文件不在通常的安装路径(C:\ Xampp)下,而是在另一个磁盘上。
所以现在我的phpmyadmin表有双__像pma__table ......和$ i = 1;
答案 11 :(得分:0)
这就是我解决问题的方式
xampp/mysql/data
目录