LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 36 of 106
0 votes
1 ans
3 views
Dropping Unique constraint from MySQL table

How can I drop the "Unique Key Constraint" on a column of a MySQL table using phpMyAdmin?

database Solved
AN
asked 1 month ago by Ankur Mukherjee
0 votes
1 ans
3 views
Can I restore a single table from a full mysql mysqldump file?

I have a mysqldump backup of my mysql database consisting of all of our tables which is about 440 megs. I want to restore the contents of just one of the tables...

database Solved
MO
asked 1 month ago by Mobius
0 votes
1 ans
3 views
Laravel Unknown Column 'updated_at'

I've just started with Laravel and I get the following error: > Unknown column 'updated_at' insert into gebruikers (naam, wachtwoord, > u...

php-dev Solved
LO
asked 1 month ago by Loko
0 votes
1 ans
3 views
MySQL Update Inner Join tables query

I have no idea what the problem is. Using MySQL 5.0 I get a compile error when attempting to run the following MySQL update query: UPDATE b SET b.m...

database Solved
VI
asked 1 month ago by Vibration Of Life
0 votes
1 ans
3 views
How can I initialize a MySQL database with schema in a Docker container?

I am trying to create a container with a MySQL database and add a schema to these database. My current Dockerfile is: FROM mysql MAINTAINER (me)...

server-admin Solved
MA
asked 1 month ago by Marcus Gomes
0 votes
1 ans
3 views
MySQL Cannot Add Foreign Key Constraint

So I'm trying to add Foreign Key constraints to my database as a project requirement and it worked the first time or two on different tables, but I have two...

database Solved
JO
asked 1 month ago by joshuaegclark
0 votes
1 ans
3 views
MySQL - How to select data by string length

```sql SELECT * FROM table ORDER BY string_length(column); ``` Is there a MySQL function to do this (of course instead of `string_length`)?

database Solved
GA
asked 1 month ago by Gal
0 votes
1 ans
3 views
What is the MySQL VARCHAR max size?

I would like to know what the max size is for a MySQL VARCHAR type. I read that the max size is limited by the row size which is about 65k. I tried setting...

database Solved
US
asked 1 month ago by user1832628
0 votes
1 ans
3 views
How to export and import a .sql file from command line with options?

**Not Duplicate!** looking for some feature have phpmyadmin during export in command line I want to export and import a .sql file to and from a MySQL databas...

database Solved
AZ
asked 1 month ago by AZinkey
0 votes
1 ans
3 views
SQL keys, MUL vs PRI vs UNI

What is the difference between `MUL`, `PRI` and `UNI` in MySQL? I'm working on a MySQL query, using the command: desc mytable; One of the fiel...

database Solved
TH
asked 1 month ago by themaestro
0 votes
1 ans
3 views
MySQL Orderby a number, Nulls last

Currently, I am doing a very basic OrderBy in my statement. SELECT * FROM tablename WHERE visible=1 ORDER BY position ASC, id DESC The problem with th...

database Solved
JO
asked 1 month ago by JonB
0 votes
1 ans
3 views
Auto Generate Database Diagram MySQL

I'm tired of opening Dia and creating a database diagram at the beginning of every project. Is there a tool out there that will let me select specific table...

database Solved
CM
asked 1 month ago by cmcculloh
0 votes
1 ans
3 views
MySQL and GROUP_CONCAT() maximum length

I'm using `GROUP_CONCAT()` in a MySQL query to convert multiple rows into a single string. However, the maximum length of the result of this function is `1...

database Solved
ZE
asked 1 month ago by ZeWaren
0 votes
1 ans
3 views
How to check if mysql database exists

Is it possible to check if a (MySQL) database exists after having made a connection. I know how to check if a table exists in a DB, but I need to check if th...

database Solved
AN
asked 1 month ago by Ankur
0 votes
1 ans
3 views
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

I installed MySQL on Mac OS X Mountain Lion with `homebrew install mysql`, but when I tried `mysql -u root` I got the following error: > ERROR 2002 (HY000...

server-admin Solved
SH
asked 1 month ago by shrewdbeans
0 votes
1 ans
3 views
grant remote access of MySQL database from any IP address

I am aware of this command: GRANT ALL PRIVILEGES ON database.* TO 'user'@'yourremotehost' IDENTIFIED BY 'newpassword&#...

database Solved
AD
asked 1 month ago by adit
0 votes
1 ans
3 views
How do I query between two dates using MySQL?

The following query: SELECT * FROM `objects` WHERE (date_field BETWEEN '2010-09-29 10:15:55' AND '2010-01-30 14:15:55') returns...

database Solved
NU
asked 1 month ago by NullVoxPopuli
0 votes
1 ans
3 views
INSERT with SELECT

I have a query that inserts using a `SELECT` statement: INSERT INTO courses (name, location, gid) SELECT name, location, gid FROM courses...

general-dev Solved
KY
asked 1 month ago by Kyle
0 votes
1 ans
3 views
Setting up foreign keys in phpMyAdmin?

I'm setting up a database using phpMyAdmin. I have two tables (`foo` and `bar`), **indexed on their primary keys**. I am trying to create a relational table...

database Solved
NA
asked 1 month ago by Nathan Long
0 votes
1 ans
3 views
How to generate a create table script for an existing table in phpmyadmin?

How can I generate a create table script for an existing table in phpmyadmin?

php-dev Solved
MA
asked 1 month ago by Marko Cakic