LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

2110 solutions found in server-meltdown

Page 41 of 106
0 votes
2 ans
24 views
What's the difference between MyISAM and InnoDB?

I understand that this question has been asked before, but most of the time it is asked in relation to a specific database or table. I cannot find an answer on...

database Solved
SC
asked 5 months ago by Scott
0 votes
1 ans
26 views
MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET

What is main difference between `INSERT INTO table VALUES ..` and `INSERT INTO table SET`? Example: INSERT INTO table (a, b, c) VALUES (1,2,3)...

database Solved
IR
asked 5 months ago by Irmantas
0 votes
3 ans
33 views
Access denied; you need (at least one of) the SUPER privilege(s) for this DEFINER operation

So I try to import sql file into rds (1G MEM, 1 CPU). The sql file is like 1.4G mysql -h xxxx.rds.amazonaws.com -u user -ppass --max-allowed-packet=33554432...

general-dev Solved
KE
asked 5 months ago by kenpeter
0 votes
3 ans
33 views
Show constraints on tables command

I have tables that I've tried setting PK FK relationships on but I want to verify this. How can I show the PK/FK restraints? I saw [this][1] manual page, bu...

general-dev Solved
CA
asked 5 months ago by Captain Claptrap
0 votes
3 ans
24 views
MySQL query String contains

I've been trying to figure out how I can make a query with MySQL that checks if the value (string `$haystack` ) in a certain column contains certain data (s...

database Solved
AR
asked 5 months ago by arik
0 votes
1 ans
25 views
How can I make SQL case sensitive string comparison on MySQL?

I have a function that returns five characters with mixed case. If I do a query on this string it will return the value regardless of case. How can I make My...

database Solved
ST
asked 5 months ago by StevenB
0 votes
1 ans
26 views
Truncate all tables in a MySQL database in one command?

Is there a query (command) to truncate all the tables in a database in one operation? I want to know if I can do this with one single query.

database Solved
DE
asked 5 months ago by devang
0 votes
3 ans
25 views
brew install mysql on macOS

I'm trying to setup up MySQL on mac os 10.6 using Homebrew by `brew install mysql 5.1.52`. Everything goes well and I am also successful with the `mysql_...

database Solved
NI
asked 5 months ago by nikola
0 votes
3 ans
25 views
Export MySQL dump from command line

I am moving away from Linode because I don't have the Linux sysadmin skills necessary; before I complete the transition to a more noob-friendly service, I n...

database Solved
PH
asked 5 months ago by Phillip Copley
0 votes
3 ans
26 views
What does SQL clause "GROUP BY 1" mean?

Someone sent me a SQL query where the `GROUP BY` clause consisted of the statement: `GROUP BY 1`. This must be a typo right? No column is given the alias 1....

database Solved
SP
asked 5 months ago by Spencer
0 votes
2 ans
27 views
Strange MySQL Popup "Mysql Installer is running community mode"

I have installed a recent community version of MySQL from MySQL site. The version is `5.6.x`. It was done using an installer and I also chose the option to c...

database Solved
VI
asked 5 months ago by Vikas
0 votes
3 ans
31 views
PDOException “could not find driver”

I have just installed Debian Lenny with Apache, MySQL, and PHP and I am receiving a PDOException `could not find driver`. This is the specific line of code i...

general-dev Solved
MI
asked 5 months ago by Mike Moore
0 votes
3 ans
28 views
PHP date() format when inserting into datetime in MySQL

What is the correct format to pass to the `date()` function in PHP if I want to insert the result into a MySQL `datetime` type column? I've been trying `...

database Solved
AL
asked 5 months ago by Alex
0 votes
2 ans
30 views
How to change max_allowed_packet size

I am having a problem with BLOB fields in my MySQL database - when uploading files larger than approx 1MB I get an error `Packets larger than max_allowed_packet...

general-dev Solved
MU
asked 5 months ago by Muleskinner
0 votes
2 ans
31 views
Find records from one table which don't exist in another

I've got the following two tables (in MySQL): Phone_book +----+------+--------------+ | id | name | phone_number | +----+------+------...

general-dev Solved
PH
asked 5 months ago by Philip Morton
0 votes
2 ans
26 views
Cast from VARCHAR to INT - MySQL

My Current Data for SELECT PROD_CODE FROM `PRODUCT` is PROD_CODE 2 5 7 8 22 10 9 11 I have tried all...

database Solved
RA
asked 5 months ago by Raj
0 votes
2 ans
24 views
MySQL Select all columns from one table and some from another table

How do you select all the columns from one table and just some columns from another table using JOIN? In MySQL.

database Solved
AL
asked 5 months ago by Alex
0 votes
3 ans
26 views
Suppress warning messages using mysql from within Terminal, but password written in bash script

When I tried running the following command on MySQL from within Terminal: mysql -u $user -p$password -e "statement" The execution works as e...

database Solved
BL
asked 5 months ago by Blaszard
0 votes
2 ans
27 views
How to connect to MySQL from the command line

How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're...

database Solved
LE
asked 5 months ago by Leahcim
0 votes
3 ans
23 views
MySQL - force not to use cache for testing speed of query

I'm testing the speed of some queries in MySQL. The database is caching these queries making it difficult for me to get reliable results when testing how fa...

database Solved
AL
asked 5 months ago by Alan