LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

422 solutions found in database

Page 13 of 22
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
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
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
0 votes
1 ans
3 views
Difference Between Schema / Database in MySQL

Is there a difference between a schema and a database in MySQL? In SQL Server, a database is a higher level container in relation to a schema. I read that `...

database Solved
LL
asked 1 month ago by Lloyd Banks
0 votes
1 ans
4 views
How to avoid MySQL 'Deadlock found when trying to get lock; try restarting transaction'

I have a innoDB table which records online users. It gets updated on every page refresh by a user to keep track of which pages they are on and their last access...

database Solved
DA
asked 1 month ago by David
0 votes
1 ans
3 views
How to set initial value and auto increment in MySQL?

How do I set the initial value for an "id" column in a MySQL table that start from 1001? I want to do an insert `"INSERT INTO users (name, ema...

database Solved
BB
asked 1 month ago by bbtang
0 votes
1 ans
3 views
How to best display in Terminal a MySQL SELECT returning too many fields?

I'm using [PuTTY][1] to run: mysql> SELECT * FROM sometable; `sometable` has many fields and this results in many columns trying to be displaye...

database Solved
CH
asked 1 month ago by Chris Jacob
0 votes
1 ans
3 views
How can I return pivot table output in MySQL?

If I have a MySQL table looking something like this: company_name| action |pagecount ------------|-----------|-------- Company A | PRINT |3 Company A |...

database Solved
PE
asked 1 month ago by peku
0 votes
1 ans
3 views
MySQL with Node.js

I've just started getting into Node.js. I come from a PHP background, so I'm fairly used to using MySQL for all my database needs. How can I use MySQ...

database Solved
CR
asked 1 month ago by crawf
0 votes
1 ans
3 views
How do I import CSV file into a MySQL table?

I have an unnormalized events-diary CSV from a client that I'm trying to load into a MySQL table so that I can refactor into a sane format. I created a tabl...

database Solved
IA
asked 1 month ago by Iain Samuel McLean Elder
0 votes
1 ans
3 views
MySQL vs MongoDB 1000 reads

I have been very excited about MongoDb and have been testing it lately. I had a table called posts in MySQL with about 20 million records indexed only on a fiel...

database Solved
IM
asked 1 month ago by Imran Omar Bukhsh