LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

422 solutions found in database

Page 6 of 22
0 votes
1 ans
3 views
Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in

I'm trying to connect to my MySQL DB with the Terminal on my Apple (With PHP). Yesterday it worked fine, and now I suddenly get the error in the title....

database Solved
NR
asked 1 month ago by Nr 28
0 votes
1 ans
3 views
MySQL indexes - what are the best practices?

I've been using indexes on my MySQL databases for a while now but never properly *learnt* about them. Generally I put an index on any fields that I will be...

database Solved
HA
asked 1 month ago by Haroldo
0 votes
1 ans
3 views
MySQL's now() +1 day

I'm using `now()` in MySQL query. INSERT INTO table SET data = '$data', date = now() But I want to add 1 day to this date (so that `date...

database Solved
QI
asked 1 month ago by Qiao
0 votes
1 ans
3 views
MySQL, better to insert NULL or empty string?

I have a form on a website which has a lot of different fields. Some of the fields are optional while some are mandatory. In my DB I have a table which holds al...

database Solved
RO
asked 1 month ago by roflwaffle
0 votes
1 ans
3 views
How do I add more members to my ENUM-type column in MySQL?

The MySQL reference manual does not provide a clearcut example on how to do this. I have an ENUM-type column of country names that I need to add more countri...

database Solved
ZA
asked 1 month ago by Zaid
0 votes
1 ans
3 views
How to see log files in MySQL?

I've read that Mysql server creates a log file where it keeps a record of all activities - like when and what queries execute. Can anybody tell me wher...

database Solved
AR
asked 1 month ago by Arjun
0 votes
1 ans
3 views
How to find out the MySQL root password

I cannot figure out my MySQL root password; how can I find this out? Is there any file where this password is stored? I am following this [link][1] but I do...

database Solved
OM
asked 1 month ago by Om3ga
0 votes
1 ans
3 views
Deleting rows with MySQL LEFT JOIN

I have two tables, one for job deadlines, one for describe a job. Each job can take a status and some statuses means the jobs' deadlines must be deleted fro...

database Solved
FA
asked 1 month ago by fabrik
0 votes
1 ans
3 views
How to remove all MySQL tables from the command-line without DROP database permissions?

How do I drop all tables in Windows MySQL, using command prompt? The reason I want to do this is that our user has access to the database drops, but no access t...

database Solved
MA
asked 1 month ago by Mantas
0 votes
1 ans
3 views
how to mysqldump remote db from local machine

I need to do a mysqldump of a database on a remote server, but the server does not have mysqldump installed. I would like to use the mysqldump on my machine to...

database Solved
MA
asked 1 month ago by Mauritz Hansen
0 votes
1 ans
3 views
MySQL Removing Some Foreign keys

I have a table whose primary key is used in several other tables and has several foreign keys to other tables. CREATE TABLE location ( locationI...

database Solved
DR
asked 1 month ago by Drew
0 votes
1 ans
3 views
UPDATE multiple rows with different values in one query in MySQL

I am trying to understand how to UPDATE multiple rows with different values and I just don't get it. The solution is everywhere but to me it looks difficult...

database Solved
FR
asked 1 month ago by franvergara66
0 votes
1 ans
3 views
Why does MYSQL higher LIMIT offset slow the query down?

Scenario in short: A table with more than 16 million records [2GB in size]. The higher LIMIT offset with SELECT, the slower the query becomes, when using OR...

database Solved
RA
asked 1 month ago by Rahman
0 votes
1 ans
3 views
Why can't a text column have a default value in MySQL?

If you try to create a TEXT column on a table, and give it a default value in MySQL, you get an error (on Windows at least). I cannot see any reason why a text...

database Solved
RU
asked 1 month ago by Russ
0 votes
1 ans
3 views
MySQL - length() vs char_length()

What's the main difference between `length()` and `char_length()`? I believe it has something to do with binary and non-binary strings. Is there any pra...

database Solved
YA
asked 1 month ago by Yada
0 votes
1 ans
3 views
Cannot add or update a child row: a foreign key constraint fails

table #1: | Field | Type | Null | Key | Default | Extra | | -------- | -------------- | ----- |--- | --------|------ | | UserID | int(11)...

database Solved
TO
asked 1 month ago by Tom
0 votes
1 ans
3 views
Are table names in MySQL case sensitive?

Are table names in MySQL case sensitive? On my Windows development machine the code I have is able to query my tables which appear to be all lowercase. When...

database Solved
BE
asked 1 month ago by benstpierre
0 votes
1 ans
3 views
Escaping single quote in PHP when inserting into MySQL

I have a perplexing issue that I can't seem to comprehend... I have two SQL statements: - The first enters information from a form into the database....

database Solved
SJ
asked 1 month ago by sjw
0 votes
1 ans
3 views
How do you uninstall MySQL from Mac OS X?

I accidentally installed the PowerPC version of MySQL on my Intel Mac in Snow Leopard, and it installed without a problem but of course doesn't run properly...

database Solved
JO
asked 1 month ago by Joseph Ravenwolfe
0 votes
1 ans
3 views
Check if MySQL table exists without using "select from" syntax?

Is there a way to check if a table exists *without* selecting and checking values from it? That is, I know I can go `SELECT testcol FROM testtable` and check...

database Solved
BE
asked 1 month ago by Ben