LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 37 of 106
0 votes
1 ans
3 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 1 month ago by chrismealy
0 votes
1 ans
3 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 1 month ago by Marian
0 votes
1 ans
3 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 1 month ago by imbakar
0 votes
1 ans
3 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 1 month ago by Emma
0 votes
1 ans
3 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 1 month ago by ShuklaSannidhya
0 votes
1 ans
3 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 1 month ago by Grant
0 votes
1 ans
3 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 1 month ago by Sander Versluys
0 votes
1 ans
3 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 1 month ago by Near Privman
0 votes
1 ans
3 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 1 month ago by Paul
0 votes
1 ans
3 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 1 month ago by MattGrommes
0 votes
1 ans
3 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 1 month ago by Quinn
0 votes
1 ans
3 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 1 month ago by Polsonby
0 votes
1 ans
3 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 1 month ago by Lior
0 votes
1 ans
3 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 1 month ago by floatleft
0 votes
1 ans
3 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 1 month ago by Prakash Raman
0 votes
1 ans
3 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 1 month ago by Tony Stark
0 votes
1 ans
3 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 1 month ago by andrewtweber
0 votes
1 ans
3 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 1 month ago by LeoSam
0 votes
1 ans
3 views
How to test if a string is JSON or not?

I have a simple AJAX call, and the server will return either a JSON string with useful data or an error message string produced by the PHP function `mysql_error...

php-dev Solved
JE
asked 1 month ago by jeffery_the_wind
0 votes
1 ans
3 views
Does MySQL index foreign key columns automatically?

Does MySQL index foreign key columns automatically?

database Solved
D&
asked 1 month ago by Dónal