LMSouq

Knowledge Base

Browse Moodle Solutions

2110 solutions found

Page 37 of 106
0 votes
3 ans
29 views
Setting up foreign keys in phpMyAdmin?

I'm setting up a database using phpMyAdmin. I have two tables (`foo` and `bar`), **indexed on their primary keys**. I am trying to create a relational table...

database Solved
NA
asked 5 months ago by Nathan Long
0 votes
3 ans
28 views
How to generate a create table script for an existing table in phpmyadmin?

How can I generate a create table script for an existing table in phpmyadmin?

php-dev Solved
MA
asked 5 months ago by Marko Cakic
0 votes
3 ans
32 views
For homebrew mysql installs, where's my.cnf?

For homebrew mysql installs, where's my.cnf? Does it install one?

database Solved
CH
asked 5 months ago by chrismealy
0 votes
2 ans
33 views
How to install Python MySQLdb module using pip?

How can I install the [MySQLdb][1] module for Python using pip? [1]: http://mysql-python.sourceforge.net/MySQLdb.html

database Solved
MA
asked 5 months ago by Marian
0 votes
3 ans
32 views
Laravel Migration Error: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

**Migration error on Laravel 5.4 with `php artisan make:auth`** > [Illuminate\Database\QueryException]...

php-dev Solved
IM
asked 5 months ago by imbakar
0 votes
3 ans
31 views
Inserting multiple rows in mysql

Is the database query faster if I insert multiple rows at once: like INSERT.... UNION INSERT.... UNION (I need to...

database Solved
EM
asked 5 months ago by Emma
0 votes
1 ans
27 views
Storing JSON in database vs. having a new column for each key

I am implementing the following model for storing user related data in my table - I have 2 columns - `uid` (primary key) and a `meta` column which stores other...

database Solved
SH
asked 5 months ago by ShuklaSannidhya
0 votes
1 ans
29 views
How big can a MySQL database get before performance starts to degrade

At what point does a MySQL database start to lose performance? - Does physical database size matter? - Do number of records matter? - Is any performa...

database Solved
GR
asked 5 months ago by Grant
0 votes
3 ans
33 views
What does character set and collation mean exactly?

I can read the *MySQL* documentation and it's pretty clear. But, how does one decide which character set to use? On what data does collation have an effect?...

general-dev Solved
SA
asked 5 months ago by Sander Versluys
0 votes
3 ans
28 views
Which ORM should I use for Node.js and MySQL?

I'm rewriting a project to use Node.js. I'd like to keep using MySQL as the DB (even though I don't mind rewriting the schema). I'm looking for...

database Solved
NE
asked 5 months ago by Near Privman
0 votes
2 ans
28 views
ROW_NUMBER() in MySQL

Is there a nice way in MySQL to replicate the SQL Server function `ROW_NUMBER()`? For example: SELECT col1, col2, ROW_NUMBER() OVE...

database Solved
PA
asked 5 months ago by Paul
0 votes
3 ans
31 views
How do I list all the columns in a table?

For the various popular database systems, how do you list all the columns in a table?

general-dev Solved
MA
asked 5 months ago by MattGrommes
0 votes
1 ans
26 views
Passing an array to a query using a WHERE clause

Given an array of ids `$galleries = array(1,2,5)` I want to have a SQL query that uses the values of the array in its WHERE clause like: <!-- language: la...

database Solved
QU
asked 5 months ago by Quinn
0 votes
3 ans
30 views
mysqli or PDO - what are the pros and cons?

In our place we're split between using mysqli and PDO for stuff like prepared statements and transaction support. Some projects use one, some the other. The...

database Solved
PO
asked 5 months ago by Polsonby
0 votes
1 ans
25 views
"Incorrect string value" when trying to insert UTF-8 into MySQL via JDBC?

This is how my connection is set: `Connection conn = DriverManager.getConnection(url + dbName + "?useUnicode=true&characterEncoding=utf-8", use...

database Solved
LI
asked 5 months ago by Lior
0 votes
3 ans
24 views
MySQL error 2006: mysql server has gone away

I'm running a server at my office to process some files and report the results to a remote MySQL server. The files processing takes some time and the pro...

server-admin Solved
FL
asked 5 months ago by floatleft
0 votes
1 ans
28 views
How to perform a mysqldump without a password prompt?

I would like to know the command to perform a mysqldump of a database without the prompt for the password. REASON: I would like to run a cron job, which tak...

database Solved
PR
asked 5 months ago by Prakash Raman
0 votes
3 ans
32 views
How long is the SHA256 hash?

I'm going to run `SHA256` on a password + salt, but I don't know how long to make my `VARCHAR` when setting up the MySQL database. What is a good length...

general-dev Solved
TO
asked 5 months ago by Tony Stark
0 votes
3 ans
29 views
How to determine which database is selected

Is there any way to later output the name of the database that is currently selected?

database Solved
AN
asked 5 months ago by andrewtweber
0 votes
3 ans
29 views
mysql update column with value from another table

I have two tables, both looking like id name value =================== 1 Joe 22 2 Derk 30 I need to copy the value of `va...

database Solved
LE
asked 5 months ago by LeoSam