LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 30 of 106
0 votes
1 ans
3 views
Best practice multi language website

I've been struggling with this question for quite some months now, but I haven't been in a situation that I needed to explore all possible options befor...

general-dev Solved
JO
asked 1 month ago by Joshua - Pendo
0 votes
1 ans
3 views
Throw an error preventing a table update in a MySQL trigger

If I have a trigger before the update on a table, how can I throw an error that prevents the update on that table?

database Solved
MA
asked 1 month ago by Matt MacLean
0 votes
1 ans
3 views
Binary Data in MySQL

How do I store binary data in [MySQL][1]? [1]: http://en.wikipedia.org/wiki/MySQL

database Solved
GE
asked 1 month ago by Geoff Dalgas
0 votes
1 ans
3 views
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'db'

I want to begin writing queries in MySQL. `show grants` shows: ```lang-none +--------------------------------------+ | Grants for @localhost...

database Solved
NI
asked 1 month ago by Nickool
0 votes
1 ans
3 views
MySQL - Make an existing Field Unique

I have an already existing table with a field that should be unique but is not. I only know this because an entry was made into the table that had the same valu...

database Solved
LO
asked 1 month ago by Lothar
0 votes
1 ans
3 views
MYSQL Truncated incorrect DOUBLE value

When the SQL query below is executed: UPDATE shop_category SET name = 'Secolul XVI - XVIII' AND name_eng = '16th to 18th cent...

database Solved
EM
asked 1 month ago by Emanuel
0 votes
1 ans
3 views
#1273 - Unknown collation: 'utf8mb4_unicode_ci' cPanel

I have a WordPress database on my local machine that I want to transfer to a hosted phpMyAdmin on cPanel. However, when I try to import the database into the en...

general-dev Solved
WA
asked 1 month ago by Wairimu Murigi
0 votes
1 ans
3 views
PDO get the last ID inserted

I have a query, and I want to get the last ID inserted. The field ID is the primary key and auto incrementing. I know that I have to use this statement:...

general-dev Solved
WI
asked 1 month ago by William Kinaan
0 votes
1 ans
3 views
How to get ER model of database from server with Workbench

Is there any way to get an ER model of a database from the server that is connected to my MySQL Workbench?

server-admin Solved
ZD
asked 1 month ago by zdarsky.peter
0 votes
1 ans
3 views
MySQL load NULL values from CSV data

I have a file that can contain from 3 to 4 columns of numerical values which are separated by comma. Empty fields are defined with the exception when they are a...

database Solved
SP
asked 1 month ago by Spiros
0 votes
1 ans
3 views
Which is fastest? SELECT SQL_CALC_FOUND_ROWS FROM `table`, or SELECT COUNT(*)

When you limit the number of rows to be returned by a SQL query, usually used in paging, there are two methods to determine the total number of records: ###M...

database Solved
JR
asked 1 month ago by Jrgns
0 votes
1 ans
3 views
MySQL root access from all hosts

I've installed MySQL server on a remote Ubuntu machine. The `root` user is defined in the `mysql.user` table this way: mysql> SELECT host, user, pass...

database Solved
LO
asked 1 month ago by lorenzo-s
0 votes
1 ans
3 views
How can I use mySQL replace() to replace strings in multiple records?

We have a database that has a bunch of records with some bad data in one column, in which an embedded editor escaped some stuff that shouldn't have been esc...

database Solved
EM
asked 1 month ago by EmmyS
0 votes
1 ans
3 views
automatically insert auto increment primary key and values into existing table

I am trying to alter a table which has no primary key nor auto_increment column. I know how to add an auto increment primary key column. I already have 500 r...

general-dev Solved
FL
asked 1 month ago by FlyingCat
0 votes
1 ans
3 views
In MySQL, can I copy one row to insert into the same table?

insert into table select * from table where primarykey=1 I just want to copy one row to insert into the same table (i.e., I want to duplicate an existing...

database Solved
LI
asked 1 month ago by lina
0 votes
1 ans
3 views
How to update column with null value

I am using mysql and need to update a column with a null value. I have tried this many different ways and the best I have gotten is an empty string. Is there...

general-dev Solved
JI
asked 1 month ago by jim
0 votes
1 ans
3 views
Is it a good idea to index datetime field in mysql?

I am working on designing a large database. In my application I will have many rows for example I currently have one table with 4 million records. Most of my qu...

database Solved
JA
asked 1 month ago by Jaylen
0 votes
1 ans
3 views
How to define a custom ORDER BY order in mySQL

In MySQL how do I define a custom sorting order. To try to explain what I want consider this table: ID Language Text 0 ENU a 0 JPN b...

database Solved
MU
asked 1 month ago by Muleskinner
0 votes
1 ans
3 views
How to change the default collation of a table?

create table check2(f1 varchar(20),f2 varchar(20)); creates a table with the default collation `latin1_general_ci`; alter table check2 collate lat...

general-dev Solved
SI
asked 1 month ago by simplfuzz
0 votes
1 ans
3 views
How to change the CHARACTER SET (and COLLATION) throughout a database?

Our previous programmer set the wrong collation in a table (Mysql). He set it up with Latin collation, when it should be UTF8, and now I have issues. Every reco...

database Solved
JE
asked 1 month ago by Jeg Bagus