LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 41 of 106
0 votes
1 ans
3 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 1 month ago by kenpeter
0 votes
1 ans
3 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 1 month ago by Captain Claptrap
0 votes
1 ans
3 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 1 month ago by arik
0 votes
1 ans
3 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 1 month ago by StevenB
0 votes
1 ans
3 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 1 month ago by devang
0 votes
1 ans
3 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 1 month ago by nikola
0 votes
1 ans
3 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 1 month ago by Phillip Copley
0 votes
1 ans
3 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 1 month ago by Spencer
0 votes
2 ans
3 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 1 month ago by Vikas
0 votes
1 ans
3 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 1 month ago by Mike Moore
0 votes
1 ans
3 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 1 month ago by Alex
0 votes
2 ans
3 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 1 month ago by Muleskinner
0 votes
1 ans
3 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 1 month ago by Philip Morton
0 votes
1 ans
3 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 1 month ago by Raj
0 votes
1 ans
3 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 1 month ago by Alex
0 votes
1 ans
3 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 1 month ago by Blaszard
0 votes
1 ans
3 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 1 month ago by Leahcim
0 votes
1 ans
3 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 1 month ago by Alan
0 votes
1 ans
3 views
Dump only the data with mysqldump without any table information

I am looking for the syntax for dumping all data in my mysql database. I don't want any table information.

database Solved
LI
asked 1 month ago by Lizard
0 votes
1 ans
3 views
MySQL Error 1215: Cannot add foreign key constraint

I am trying to forward engineer my new schema onto my database server, but I get this error. Everything I've found has said to either set the database en...

database Solved
RO
asked 1 month ago by Robert B