phpMyAdmin

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

[亡魂溺海] 提交于 2020-01-22 02:18:06
问题 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

How to export a single table from phpmyadmin to a comma delimited text file?

泪湿孤枕 提交于 2020-01-21 08:35:09
问题 I need to export a table from phpmyadmin to a comma delimited text file. I think there is a code but can't seem to find it. I found one but it doesnt work. I need to export this table because I need to organize it and sort it and add another column so I can add data to this column. How can I do this please? 回答1: In PHPAdmin, if I recall correctly, there is an Export tab. If you click on that, you can select the table(s) you want to export and which format you would like to export the data in.

Populate text fields (in form) based on value selected from dynamic drop down box

六眼飞鱼酱① 提交于 2020-01-17 07:05:50
问题 I have two tables. Employee (Employee_ID, First_name, Last_name, Address etc) and Training (Training_ID, Employee_ID, First_name, Last_name, Training_type). For the training table, I have a form in which is meant to be filled out to assign a training type for an employee. OK currently, the dropdown box,for employee ID, has the values of the employee ID from the employee table. When I chose a value from the drop down box, I would like for the text fields in the form (firstname & Lastname) to

“Sub columns” in MySQL

旧巷老猫 提交于 2020-01-17 03:34:13
问题 I have a project idea which would be much more simple if this exists; Is it possible to create sub-columns in MySQL? This is an example of what I mean, in table form: +--------+---------------+ | | Weekday | | Time +-------+-------+ | | 1ST | 2ND | +--------+-------+-------+ | 8:00 | Jim | Bob | | 9:00 | Steve | Jim | | 10:00 | Tod | Rick | +--------+-------+-------+ I have to specify a primary and a secondary point of contact for every day of the week. I figured it would be very easy to have

Error creating table in SQL [closed]

▼魔方 西西 提交于 2020-01-17 02:54:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I keep getting errors when running this query in phpmyadmin to create a customers table for my database. This is the query I am trying to use: CREATE TABLE customers ( cust_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, Name character(30), phone character(15), ); Any help would greatly appreciated. 回答1: You added a

Can't diagnose my MySQL root user problem

限于喜欢 提交于 2020-01-16 19:30:13
问题 I have a problem with the MySQL root user in My MySQL setup, and I just can't for the life of me work out how to fix it. It seems that I have somehow messed up the root user, and my access to databases is now very erratic. For reference, I'm using MAMP on OS X to provide the MySQL server. I'm not sure how much that matters though - I'd guess that whatever I've done will require a command-line fix to solve it. I can start MySQL using MAMP as usual, and access databases using the 'standard'

Understanding Primary Key and Relationship Databases with MySQL (phpmyadmin)

情到浓时终转凉″ 提交于 2020-01-16 04:01:47
问题 Forewarning - Something could be wrong from the start. More than one thing. Any additional help outside of the question I ask would be much appreciated :) Also, admin_tbl can be ignored. It is simply usernames/passwords for administrators for the site. Aim (and question): To create two relationship tables. Using my HTML Form I want to be able to insert information such as: albumName - Exploration name - Dead Sea timeDate - 2015-12-21 comment - A beautiful landscape of the Dead Sea in Israel.

Apache Port forwarding 80 to 8080 and accessing applications hosted both in Apache (80), i.e phpMyadmin and Tomcat (8080)

元气小坏坏 提交于 2020-01-16 01:10:43
问题 I want to access an application 'myapp' hosted in tomcat server(8080) currently can be accessed by http://example.com:8080/myapp in http://example.com/myapp (apache server, port 80). What should I do for that? If I use port forwarding 80 to 8080 will I be able to access phpMyadmin, or any other applications running in port 80? Which method I should follow to accomplish the task? I am using Ubuntu server 14.04. 回答1: Use mod_proxy. Load module... Second define in your virtual host: ProxyPass

MySQL PHPMyAdmin Error #1062 - Duplicate entry '0' for key 'PRIMARY'

本秂侑毒 提交于 2020-01-15 05:17:07
问题 Now I want to add a primary key id column but it throws the error: #1062 - Duplicate entry '0' for key 'PRIMARY' I already tried this: Add primary key to existing table 回答1: When you creates a new column, a default value is asigned (in your case will be 0), so you need to specify wich values will it have (besides you can tell it to the column to be autoincremental, and it will do the work for you for the new entries of rows). You have to change all the values to be differents between them,

Change the Datatype of a Column in the entire Database - MySQL

好久不见. 提交于 2020-01-15 03:13:08
问题 I am new to MySQL. I have designed few tables with Char datatype. Now I want to change all the char datatype columns to Varchar with respective size mentioned in Char. For example. Existing - Phone Char(10) Expected - Phone Varchar(10) There are around 50 Plus tables. I know how to alter the datatype for each and every table and column but is there any better way to change the datatype in a single shot. 回答1: If you can't write a script to do the job, write a script that writes a script to do