LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 42 of 106
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
Import file size limit in PHPMyAdmin

I have changed all the php.ini parameters I know: `upload_max_filesize`, and `post_max_size`. Why am I still seeing 2MB? I'm using Zend Server CE on...

php-dev Solved
RO
asked 1 month ago by ronaldosantana
0 votes
1 ans
3 views
Get current AUTO_INCREMENT value for any table

How do I get the current AUTO_INCREMENT value for a table in MySQL?

general-dev Solved
BP
asked 1 month ago by bparise
0 votes
1 ans
3 views
How to see full query from SHOW PROCESSLIST?

When I issue `SHOW PROCESSLIST` query, only the first 100 characters of the running SQL query are returned in the info column. Is it possible to change MySQL...

server-admin Solved
GH
asked 1 month ago by Ghostrider
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
Using env variable in Spring Boot's application.properties

We are working on a Spring Boot web application, and the database we are using is MySQL; * the setup we have is we first test it *locally* (means we need to...

general-dev Solved
EA
asked 1 month ago by Eazy
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
0 votes
1 ans
3 views
Connect Java to a MySQL database

How do you connect to a MySQL database in Java? When I try, I get java.sql.SQLException: No suitable driver found for jdbc:mysql://database/table...

database Solved
AB
asked 1 month ago by abson
0 votes
1 ans
3 views
How to get UTF-8 working in Java webapps?

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support `äöå` etc. for regular Finnish text and Cyrillic alp...

general-dev Solved
KO
asked 1 month ago by kosoant
0 votes
1 ans
3 views
How do I check if a column is empty or null in MySQL?

I have a column in a table which might contain null or empty values. How do I check if a column is empty or null in the rows present in a table? (e.g. nu...

database Solved
PR
asked 1 month ago by priya
0 votes
1 ans
3 views
Get table names using SELECT statement in MySQL

In MySQL, I know I can list the tables in a database with: SHOW TABLES However, I want to insert these table names into another table, for instance:...

database Solved
MI
asked 1 month ago by Mike Chamberlain
0 votes
1 ans
3 views
MySQL query to get column names?

I'd like to get all of a MySQL table's column names into an array in PHP. Is there a query for this?

database Solved
HA
asked 1 month ago by Haroldo
0 votes
1 ans
3 views
Best data type to store money values in MySQL

I want to store many records in a MySQL database. All of them contains money values. But I don't know how many digits will be inserted for each one. Whic...

database Solved
MO
asked 1 month ago by Mohammad Saberi
0 votes
1 ans
3 views
MySQL JOIN ON vs USING?

In a MySQL `JOIN`, what is the difference between `ON` and `USING()`? As far as I can tell, `USING()` is just more convenient syntax, whereas `ON` allows a litt...

database Solved
NA
asked 1 month ago by Nathanael
0 votes
1 ans
3 views
What column type/length should I use for storing a Bcrypt hashed password in a Database?

I want to store a hashed password (using BCrypt) in a database. What would be a good type for this, and which would be the correct length? Are passwords hashed...

database Solved
HE
asked 1 month ago by helpermethod