phpMyAdmin

Manually Cancel An Order

╄→гoц情女王★ 提交于 2020-01-25 05:51:26
问题 I have some orders that need to be cancelled but because they originally were pre-authorized through auth.net, they will not cancel. I get a "no transaction found" message when trying to cancel/void. Because of this I simply want to cancel the orders manually in the database and skip the standard void process. Does anyone know the specific tables in the Magento database that need to be modified to simply cancel an order? 回答1: Be careful with this. The Table in 1.7 is sales_flat_order .

MySQL weird issue while importing a large file: Duplicate entry for key 'PRIMARY'

情到浓时终转凉″ 提交于 2020-01-24 23:39:08
问题 My hosting company wants me to move from a MySQL 4 server to a MySQL 5.5 one. My database is relatively big as my website hosts the data of nearly 200,000+ registered users. I made an export of all my tables using PHPMyAdmin and I am now trying to import them into the new server. Everything went fine until I tried to import the 'user' table. For information, here is its structure: CREATE TABLE IF NOT EXISTS `user` ( `login` varchar(32) NOT NULL DEFAULT '', `firstname` varchar(255) NOT NULL

How to reset auto increment column of a table in MySQL

风格不统一 提交于 2020-01-24 18:09:05
问题 I have a table and it's first column sl is auto incrementing. After populating my table, I removed first two rows, and the first entry is having sl 1. Is it possible to reset it to 1 maintaining AI? I am using PHP MyAdmin. 回答1: I'm not sure if i got your question but if you want your column sl to be renumbered do ALTER TABLE your_table DROP sl and then ALTER TABLE your_table ADD sl your_definitions 回答2: ALTER TABLE tablename AUTO_INCREMENT = 1; 回答3: If you just want to reset the auto-number

Mysql version is different in phpmyadmin

只愿长相守 提交于 2020-01-24 06:24:25
问题 I just upgraded my MYSQL version from 5.5.40 to 5.6.22 but my PHPMYADMIN still show the same old version on Home Page In terminal I checked version mysql --version ==> 5.6.22 But when I check with "select version()" command inside Terminal and PHPMYADMIN I got correct version 5.6.22 But on home page of PHPMYADMIN I get 5.5.40-0ubuntu0.14.04.1 - (Ubuntu) In a post I read that there might be two mysql clients installed and may be phpmyadmin is referring to old client. If this is the case how

#1054 - Unknown column 'id' in 'field list' - phpMyAdmin

徘徊边缘 提交于 2020-01-24 04:36:28
问题 I've read my threads about this problem but I still don't know how to solve it. Error SQL query: -- -- Dump data for table `bi_instituicoes` -- INSERT INTO `bi_instituicoes` (`id`, `Instituicao`, `Morada`, `Código Postal`, `Localidade`, `País`) VALUES (1, 'Escola Secundária D. Afonso Sanches', 'Alameda Flâmula Pais', NULL, 'Vila do Conde ', 'Portugal'), (2, 'Escola Secundária da Boa Nova', 'Av. dos Combatentes da Grande Guerra', NULL, 'Leça da Palmeira ', 'Portugal'), (3, 'Escola Secundária

Importing XML in to phpmyadmin database

被刻印的时光 ゝ 提交于 2020-01-23 10:12:39
问题 I'm trying to import XML from this site http://data.gov.uk/dataset/car-parks to a phpmyadmin database, so I can use it in a google maps mashup. I'm new to this and not sure how to go about getting the XML in to the database. Do I create the database columns first and then import the data? 回答1: There is a LOAD XML method in mysql, through which you can import the data from XML into your database. An Example: LOAD XML LOCAL INFILE '/pathtofile/file.xml' INTO TABLE `tablename` (fieldl1, field2,

Importing XML in to phpmyadmin database

纵饮孤独 提交于 2020-01-23 10:09:17
问题 I'm trying to import XML from this site http://data.gov.uk/dataset/car-parks to a phpmyadmin database, so I can use it in a google maps mashup. I'm new to this and not sure how to go about getting the XML in to the database. Do I create the database columns first and then import the data? 回答1: There is a LOAD XML method in mysql, through which you can import the data from XML into your database. An Example: LOAD XML LOCAL INFILE '/pathtofile/file.xml' INTO TABLE `tablename` (fieldl1, field2,

MySQL Timestamp - why all zeros?

和自甴很熟 提交于 2020-01-22 12:38:36
问题 I'm using PHPMyAdmin and I've got a MySQL table column called "timestamp." The type (surprise!) is TIMESTAMP , and in 'attributes' I've set it to ON UPDATE CURRENT_TIMESTAMP . However, each new record gets a timestamp that looks like this: 0000-00-00 00:00:00 I have explicitly set the default value to none, but when I save and come back to look, it is set to all zeros as above. The relevant PHP records page hits with this query: $query = "INSERT INTO `pagehit` (user_id, pageurl) VALUES ('" .

phpmyadmin: create a function

谁说我不能喝 提交于 2020-01-22 09:58:36
问题 i'm trying to create a function in my phpmyadmin - doesnt work .. :/ here's my syntax: DELIMITER $$ CREATE FUNCTION fixString(input varchar) RETURNS varchar BEGIN declare output varchar; SET output = REPLACE(input,'ö','oe'); RETURN output; END $$ DELIMITER ; error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') RETURNS varchar BEGIN declare output varchar; SET output = ' at line 1 any ideas what

Encoding error with polish charset during transfer of database / server seting up

坚强是说给别人听的谎言 提交于 2020-01-22 02:18:07
问题 I am trying to transfer one of my databases from one host (home.pl) to another (my newly set server). The script that I am trying to transfer is wordpress. Unluckily irrespective of the method used I am struggling with encoding problems. New host configuration In my new server I am using the following directives in my.cnf: [mysql] default-character-set=utf8 [mysqld] collation-server = utf8_general_ci character-set-server = utf8 init_connect='SET collation_connection = utf8_general_ci' init