LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 48 of 106
0 votes
1 ans
3 views
How to show the last queries executed on MySQL?

Is there any query/way to show the last queries executed on **ALL** servers?

database Solved
FE
asked 1 month ago by FerranB
0 votes
1 ans
3 views
MySQL: @variable vs. variable. What's the difference?

In another question I posted someone told me that there is a difference between: ```sql @variable ``` and: ```sql variable ``` in MySQL. He also...

database Solved
AA
asked 1 month ago by aarona
0 votes
1 ans
3 views
Docker (Apple Silicon/M1 Preview) MySQL "no matching manifest for linux/arm64/v8 in the manifest list entries"

I'm running the latest build of the [Docker Apple Silicon Preview.][1] I created the tutorial container/images and it works fine. When I went to create a cu...

server-admin Solved
SA
asked 1 month ago by Sam
0 votes
1 ans
3 views
MySQL Error 1153 - Got a packet bigger than 'max_allowed_packet' bytes

I'm importing a MySQL dump and getting the following error. $ mysql foo < foo.sql ERROR 1153 (08S01) at line 96: Got a packet bigger than &#...

database Solved
KC
asked 1 month ago by kch
0 votes
1 ans
3 views
Maximum length for MySQL type text

I'm creating a form for sending private messages and want to set the `maxlength` value of a textarea appropriate to the max length of a `text` field in my M...

database Solved
CY
asked 1 month ago by CyberJunkie
0 votes
1 ans
3 views
MySQL ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)

I'm connected to my Amazon EC2 instance. I can login with MySQL root with this command: mysql -u root -p Then I created a new user bill with host...

database Solved
AL
asked 1 month ago by Ali
0 votes
1 ans
3 views
How to convert an entire MySQL database characterset and collation to UTF-8?

How can I convert entire MySQL database character-set to UTF-8 and collation to UTF-8?

database Solved
DE
asked 1 month ago by Dean
0 votes
1 ans
3 views
Restrict results to top N rows per group

The following query: ``` SELECT year, id, rate FROM h WHERE year BETWEEN 2000 AND 2009 ORDER BY id, rate DESC ``` yields: ``` year | id | r...

general-dev Solved
WE
asked 1 month ago by Wells
0 votes
1 ans
3 views
What is the difference between utf8mb4 and utf8 charsets in MySQL?

What is the difference between `utf8mb4` and `utf8` charsets in *MySQL*? I already know about *ASCII*, *UTF-8*, *UTF-16* and *UTF-32* encodings; but I&#39...

database Solved
MO
asked 1 month ago by Mojtaba Rezaeian
0 votes
1 ans
3 views
How do I modify a MySQL column to allow NULL?

MySQL 5.0.45 What is the syntax to alter a table to allow a column to be null, alternately what's wrong with this: ALTER mytable MODIFY mycolumn v...

database Solved
ZM
asked 1 month ago by zmf
0 votes
1 ans
3 views
MySQL error: key specification without a key length

I have a table with a primary key that is a varchar(255). Some cases have arisen where 255 characters isn't enough. I tried changing the field to a text, bu...

database Solved
GS
asked 1 month ago by GSto
0 votes
1 ans
3 views
Error installing mysql2: Failed to build gem native extension

I am having some problems when trying to install `mysql2` gem for Rails. When I try to install it by running `bundle install` or `gem install mysql2` it gives m...

database Solved
SP
asked 1 month ago by spacemonkey
0 votes
1 ans
3 views
How to delete a column from a table in MySQL

Given the table created using: CREATE TABLE tbl_Country ( CountryId INT NOT NULL AUTO_INCREMENT, IsDeleted bit, PRIMARY KEY (C...

database Solved
RA
asked 1 month ago by raji
0 votes
1 ans
3 views
Run MySQLDump without Locking Tables

I want to copy a live production database into my local development database. Is there a way to do this without locking the production database? I'm cur...

database Solved
GR
asked 1 month ago by Greg
0 votes
1 ans
3 views
When to use MongoDB or other document oriented database systems?

We offer a platform for video- and audio-clips, photos and vector-grafics. We started with MySQL as the database backend and recently included [MongoDB][1] for...

database Solved
AU
asked 1 month ago by aurora
0 votes
1 ans
3 views
How do I find the MySQL my.cnf location

Is there a MySQL command to locate the `my.cnf` configuration file, similar to how PHP's `phpinfo()` locates its `php.ini`?

database Solved
RO
asked 1 month ago by robinmag
0 votes
1 ans
3 views
Show Procedures/Functions MySQL Command Line

How can I see the list of the stored procedures or stored functions in mysql command line like `SHOW TABLES;` or `SHOW DATABASES;` commands.

database Solved
SY
asked 1 month ago by systemsfault
0 votes
1 ans
3 views
How do I add indexes to MySQL tables?

I've got a very large MySQL table with about 150,000 rows of data. Currently, when I try and run SELECT * FROM table WHERE id = '1'; the c...

database Solved
MI
asked 1 month ago by Michael
0 votes
1 ans
3 views
Is there an SQLite equivalent to MySQL's DESCRIBE [table]?

I'm just getting started learning [SQLite][1]. It would be nice to be able to see the details for a table, like MySQL's `DESCRIBE [table]`. `PRAGMA tabl...

database Solved
MA
asked 1 month ago by Matthew
0 votes
1 ans
3 views
What is the error "Every derived table must have its own alias" in MySQL?

I am running this query on MySQL SELECT ID FROM ( SELECT ID, msisdn FROM ( SELECT * FROM TT2 ) ); and it...

database Solved
SI
asked 1 month ago by silverkid