LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 47 of 106
0 votes
1 ans
3 views
MySQL string replace

I have a column containing urls (id, url): http://www.example.com/articles/updates/43 http://www.example.com/articles/updates/866 http://www.ex...

database Solved
N0
asked 1 month ago by n00b
0 votes
1 ans
3 views
How to retrieve the current version of a MySQL database management system (DBMS)?

What command returns the current version of a MySQL database?

database Solved
PH
asked 1 month ago by pheromix
0 votes
1 ans
3 views
What is the size of column of int(11) in mysql in bytes?

What is the size of column of `int(11)` in mysql in bytes? And Maximum value that can be stored in this columns?

database Solved
GA
asked 1 month ago by Gaurav
0 votes
1 ans
3 views
How to run SQL script in MySQL?

I want to execute a text file containing SQL queries, in MySQL. I tried to run `source /Desktop/test.sql` and received the error: > mysql> . \home\...

database Solved
US
asked 1 month ago by user1160432
0 votes
1 ans
3 views
How can I view live MySQL queries?

How can I trace MySQL queries on my Linux server as they happen? For example I'd love to set up some sort of listener, then request a web page and view a...

database Solved
BA
asked 1 month ago by barfoon
0 votes
1 ans
3 views
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I installed [LAMP][1] on [Ubuntu 12.04 LTS][2] (Precise Pangolin) and then set root password on [phpMyAdmin][3]. I forgot the password and now I am una...

server-admin Solved
SU
asked 1 month ago by sushmit sarmah
0 votes
1 ans
3 views
How to see indexes for a database or table in MySQL?

How do I see if my database has any indexes on it? How about for a specific table?

database Solved
BL
asked 1 month ago by Blankman
0 votes
1 ans
3 views
How to do a regular expression replace in MySQL?

I have a table with ~500k rows; varchar(255) UTF8 column `filename` contains a file name; I'm trying to strip out various strange characters out of the f...

database Solved
PI
asked 1 month ago by Piskvor
0 votes
1 ans
3 views
ERROR 1698 (28000): Access denied for user 'root'@'localhost'

I'm setting up a new server and keep running into this problem. When I try to log into the MySQL database with the root user, I get the error: > ER...

general-dev Solved
FO
asked 1 month ago by Folkmann
0 votes
1 ans
3 views
Delete with Join in MySQL

Here is the script to create my tables: CREATE TABLE clients ( client_i INT(11), PRIMARY KEY (client_id) ); CREATE TABLE proje...

database Solved
GE
asked 1 month ago by GeekJock
0 votes
1 ans
3 views
How to declare a variable in MySQL?

How to declare a variable in mysql, so that my second query can use it? I would like to write something like: SET start = 1; SET finish = 10;...

database Solved
CD
asked 1 month ago by cdub
0 votes
1 ans
3 views
How can I solve "Error: MySQL shutdown unexpectedly"?

When I open XAMPP and click the start MySQL button, it gives me an error. I had started it just before, but now it isn't working. > 12:19:12 PM [mysq...

database Solved
AU
asked 1 month ago by Austin
0 votes
1 ans
3 views
Connection Java - MySQL : Public Key Retrieval is not allowed

I try to connect MySQL database with Java using connector 8.0.11. Everything seems to be OK, but I get this exception: Exception in thread "main&q...

database Solved
DA
asked 1 month ago by danny
0 votes
1 ans
3 views
MySQL DROP all tables, ignoring foreign keys

How do I drop all tables from a MySQL database, ignoring any foreign key constraints?

database Solved
BC
asked 1 month ago by bcmcfc
0 votes
1 ans
3 views
How to shrink/purge ibdata1 file in MySQL

I am using MySQL in localhost as a "query tool" for performing statistics in R, that is, everytime I run a R script, I create a new database (A), crea...

database Solved
LO
asked 1 month ago by lokheart
0 votes
1 ans
3 views
MySQL Error: : 'Access denied for user 'root'@'localhost'

Consider: ./mysqladmin -u root -p** '_redacted_' Output (including typing the password): > Enter password: > > mysqladmin: co...

database Solved
HA
asked 1 month ago by Harsh Trivedi
0 votes
1 ans
3 views
Create a temporary table in a SELECT statement without a separate CREATE TABLE

Is it possible to create a temporary (session only) table from a select statement without using a create table statement and specifying each column type? I know...

general-dev Solved
70
asked 1 month ago by 700 Software
0 votes
1 ans
3 views
How to take backup of a single table in a MySQL database?

By default, `mysqldump` takes the backup of an entire database. I need to backup a single table in MySQL. Is it possible? How do I restore it?

database Solved
MA
asked 1 month ago by Mandar Pande
0 votes
1 ans
3 views
How should I resolve --secure-file-priv in MySQL?

I am learning MySQL and tried using a `LOAD DATA` clause. When I used it as below: ```mysql LOAD DATA INFILE "text.txt" INTO table mytable; ```...

database Solved
M0
asked 1 month ago by m0bi5
0 votes
1 ans
3 views
MySQL select 10 random rows from 600K rows fast

How can I best write a query that selects 10 rows randomly from a total of 600k?

database Solved
FR
asked 1 month ago by Francisc