LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

422 solutions found in database

Page 8 of 22
0 votes
1 ans
3 views
MySQL dump by query

Is it possible to do `mysqldump` by single `SQL query`? I mean to dump the **whole** database, like `phpmyadmin` does when you do export to `SQL`

database Solved
JA
asked 1 month ago by Jakub Arnold
0 votes
1 ans
3 views
Using MySQL with Entity Framework

Can't find anything relevant about Entity Framework/MySQL on Google so I'm hoping someone knows about it.

database Solved
VI
asked 1 month ago by vintana
0 votes
1 ans
3 views
MySQL CONCAT returns NULL if any field contain NULL

I have following data in my table "devices" affiliate_name affiliate_location model ip os_type os_version cs1...

database Solved
NE
asked 1 month ago by Neeraj
0 votes
1 ans
3 views
String concatenation in MySQL

I am using MySQL and MySQL Workbench 5.2 CE. When I try to concatenate 2 columns, `last_name` and `first_name`, it doesn't work : select first_name +...

database Solved
RO
asked 1 month ago by Roshan
0 votes
1 ans
3 views
Quick easy way to migrate SQLite3 to MySQL?

Anyone know a quick easy way to migrate a SQLite3 database to MySQL?

database Solved
ST
asked 1 month ago by Stephen Cox
0 votes
1 ans
3 views
MySQL select one column DISTINCT, with corresponding other columns

ID FirstName LastName 1 John Doe 2 Bugs Bunny 3 John Johnson I want to select `DISTINCT` resul...

database Solved
M
asked 1 month ago by m r
0 votes
1 ans
3 views
Setting the MySQL root user password on OS X

I just installed MySQL on Mac OS X. The next step was setting the root user password, so I did this next: 1. Launch the terminal app to access the Unix comma...

database Solved
MA
asked 1 month ago by madaura
0 votes
1 ans
3 views
How to get all columns' names for all the tables in MySQL?

Is there a fast way of getting all column names from all tables in `MySQL`, without having to list all the tables?

database Solved
DI
asked 1 month ago by dieter
0 votes
1 ans
3 views
MySQL ON DUPLICATE KEY UPDATE for multiple rows insert in single query

I have a SQL query where I want to insert multiple rows in single query. so I used something like: $sql = "INSERT INTO beautiful (name, age)...

database Solved
PR
asked 1 month ago by Prashant
0 votes
1 ans
3 views
How to move columns in a MySQL table?

Currently I am having the following MySQL table: `Employees (empID, empName, department);` I want to change the table to the following: `Employees (empID, de...

database Solved
SU
asked 1 month ago by sumit
0 votes
1 ans
3 views
How to use MySQLdb with Python and Django in OSX 10.6?

This is a much discussed issue for OSX 10.6 users, but I haven't been able to find a solution that works. Here's my setup: Python 2.6.1 64bit Django...

database Solved
JO
asked 1 month ago by Joe
0 votes
1 ans
3 views
MySQL: How to copy rows, but change a few fields?

I have a large number of rows that I would like to copy, but I need to change one field. I can select the rows that I want to copy: select * from Tabl...

database Solved
AN
asked 1 month ago by Andrew
0 votes
1 ans
3 views
How do you stop MySQL on a Mac OS install?

I installed MySQL via [MacPorts][1]. What is the command I need to stop the server (I need to test how my application behave when MySQL is dead)? [1]: http...

database Solved
LA
asked 1 month ago by Laurie Young
0 votes
1 ans
3 views
MySQL Workbench: How to keep the connection alive

**Error Code: 2013. Lost connection to MySQL server during query** I am using MySQL Workbench. Also, I am running a batch of inserts, about 1000 lines total...

database Solved
OM
asked 1 month ago by Omar Juvera
0 votes
1 ans
3 views
How do you run a single query through mysql from the command line?

I'm looking to be able to run a single query on a remote server in a scripted task. For example, intuitively, I would imagine it would go something like:...

database Solved
MA
asked 1 month ago by Matthew
0 votes
1 ans
3 views
Select last row in MySQL

How can I `SELECT` the last row in a MySQL table? I'm `INSERT`ing data and I need to retrieve a column value from the previous row. There's an `au...

database Solved
ES
asked 1 month ago by esqew
0 votes
1 ans
3 views
Count the number of occurrences of a string in a VARCHAR field?

I have a table like this: TITLE | DESCRIPTION ---------------|-------------------------------- test1 | value blah blah value test2...

database Solved
GE
asked 1 month ago by Geekman
0 votes
1 ans
3 views
Mysql error 1452 - Cannot add or update a child row: a foreign key constraint fails

I'm having a bit of a strange problem. I'm trying to add a foreign key to one table that references another, but it is failing for some reason. With my...

database Solved
ZI
asked 1 month ago by Zim
0 votes
1 ans
3 views
How to remove MySQL root password

I want to remove the password for user root in localhost. How can I do that? By mistake I have set the password of root user. That's why phpmyadmin is givin...

database Solved
NE
asked 1 month ago by nectar
0 votes
1 ans
3 views
What's the difference between using INDEX vs KEY in MySQL?

I know how to use INDEX as in the following code. And I know how to use *foreign key* and *primary key*. ```mysql CREATE TABLE tasks ( task_id...

database Solved
SH
asked 1 month ago by shin