LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 32 of 106
0 votes
1 ans
3 views
PHP with MySQL 8.0+ error: The server requested authentication method unknown to the client

I'm running MySQL version 8 on PHP 7.0. I'm getting the following error when I try to connect to my database from PHP: > Connect Error: SQLSTAT...

server-admin Solved
MO
asked 1 month ago by mohammed yaser
0 votes
1 ans
3 views
ALTER TABLE to add a composite primary key

I have a table called `provider`. I have three columns called `person`, `place`, `thing`. There can be duplicate persons, duplicate places, and duplicate things...

general-dev Solved
DA
asked 1 month ago by David542
0 votes
1 ans
3 views
Select records from NOW() -1 Day

Is there a way in a MySQL statement to order records (through a date stamp) by >= NOW() -1 so all records from the day before today to the future are selecte...

general-dev Solved
US
asked 1 month ago by user1092780
0 votes
1 ans
3 views
Location of my.cnf file on macOS

I'm trying to follow along [this tutorial](http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html) to enable remote acces...

general-dev Solved
NI
asked 1 month ago by nicolas
0 votes
1 ans
3 views
How to see log files in MySQL?

I've read that Mysql server creates a log file where it keeps a record of all activities - like when and what queries execute. Can anybody tell me wher...

database Solved
AR
asked 1 month ago by Arjun
0 votes
1 ans
3 views
How to find out the MySQL root password

I cannot figure out my MySQL root password; how can I find this out? Is there any file where this password is stored? I am following this [link][1] but I do...

database Solved
OM
asked 1 month ago by Om3ga
0 votes
1 ans
3 views
Deleting rows with MySQL LEFT JOIN

I have two tables, one for job deadlines, one for describe a job. Each job can take a status and some statuses means the jobs' deadlines must be deleted fro...

database Solved
FA
asked 1 month ago by fabrik
0 votes
1 ans
3 views
How to remove all MySQL tables from the command-line without DROP database permissions?

How do I drop all tables in Windows MySQL, using command prompt? The reason I want to do this is that our user has access to the database drops, but no access t...

database Solved
MA
asked 1 month ago by Mantas
0 votes
1 ans
3 views
how to mysqldump remote db from local machine

I need to do a mysqldump of a database on a remote server, but the server does not have mysqldump installed. I would like to use the mysqldump on my machine to...

database Solved
MA
asked 1 month ago by Mauritz Hansen
0 votes
1 ans
3 views
Which is faster: multiple single INSERTs or one multiple-row INSERT?

I am trying to optimize one part of my code that inserts data into MySQL. Should I chain INSERTs to make one huge multiple-row INSERT or are multiple separate I...

general-dev Solved
DU
asked 1 month ago by dusoft
0 votes
1 ans
3 views
MySQL Removing Some Foreign keys

I have a table whose primary key is used in several other tables and has several foreign keys to other tables. CREATE TABLE location ( locationI...

database Solved
DR
asked 1 month ago by Drew
0 votes
1 ans
3 views
UPDATE multiple rows with different values in one query in MySQL

I am trying to understand how to UPDATE multiple rows with different values and I just don't get it. The solution is everywhere but to me it looks difficult...

database Solved
FR
asked 1 month ago by franvergara66
0 votes
1 ans
3 views
Why does MYSQL higher LIMIT offset slow the query down?

Scenario in short: A table with more than 16 million records [2GB in size]. The higher LIMIT offset with SELECT, the slower the query becomes, when using OR...

database Solved
RA
asked 1 month ago by Rahman
0 votes
1 ans
3 views
Why can't a text column have a default value in MySQL?

If you try to create a TEXT column on a table, and give it a default value in MySQL, you get an error (on Windows at least). I cannot see any reason why a text...

database Solved
RU
asked 1 month ago by Russ
0 votes
1 ans
3 views
MySQL - length() vs char_length()

What's the main difference between `length()` and `char_length()`? I believe it has something to do with binary and non-binary strings. Is there any pra...

database Solved
YA
asked 1 month ago by Yada
0 votes
1 ans
3 views
Row count with PDO

There are many conflicting statements around. What is the best way to get the row count using PDO in PHP? Before using PDO, I just simply used `mysql_num_rows`....

general-dev Solved
JA
asked 1 month ago by James
0 votes
1 ans
3 views
Change a column type from Date to DateTime during ROR migration

I need to change my column type from date to datetime for an app I am making. I don't care about the data as its still being developed. How can I do this...

general-dev Solved
JD
asked 1 month ago by jdog
0 votes
1 ans
3 views
Cannot add or update a child row: a foreign key constraint fails

table #1: | Field | Type | Null | Key | Default | Extra | | -------- | -------------- | ----- |--- | --------|------ | | UserID | int(11)...

database Solved
TO
asked 1 month ago by Tom
0 votes
1 ans
3 views
Laravel-5 'LIKE' equivalent (Eloquent)

I'm using the below code to pull some results from the database with Laravel 5. BookingDates::where('email', Input::get('email'))-&gt...

php-dev Solved
V4
asked 1 month ago by V4n1ll4
0 votes
1 ans
3 views
Are table names in MySQL case sensitive?

Are table names in MySQL case sensitive? On my Windows development machine the code I have is able to query my tables which appear to be all lowercase. When...

database Solved
BE
asked 1 month ago by benstpierre