LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 27 of 106
0 votes
1 ans
3 views
MySQL Delete all rows from table and reset ID to zero

I need to delete all rows from a table but when I add a new row, I want the primary key ID, which has an auto increment, to start again from 0 respectively from...

database Solved
MA
asked 1 month ago by marek_lani
0 votes
1 ans
3 views
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='

Error message on MySql: Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' I have gone thro...

general-dev Solved
MA
asked 1 month ago by Manatax
0 votes
1 ans
3 views
How to add not null constraint to existing column in MySQL

I have table name called "Person" with following column names P_Id(int), LastName(varchar), FirstName (varchar). I forgot to give...

database Solved
MY
asked 1 month ago by mymotherland
0 votes
1 ans
3 views
Is there a way to only install the mysql client (Linux)?

Are there are any Linux mysql command line tools that don't require the entire mysql db installation package to be installed? What I'm trying to do...

server-admin Solved
EM
asked 1 month ago by emilebaizel
0 votes
2 ans
3 views
Find nearest latitude/longitude with an SQL query

I have latitude and longitude and I want to pull the record from the database, which has nearest latitude and longitude by the distance, if that distance gets l...

database Solved
BA
asked 1 month ago by Basit
0 votes
1 ans
3 views
MySQL OR vs IN performance

I am wondering if there is any difference with regards to performance between the following SELECT ... FROM ... WHERE someFIELD IN(1,2,3,4) SE...

database Solved
SC
asked 1 month ago by Scott
0 votes
1 ans
3 views
Equivalent of varchar(max) in MySQL?

What is the equivalent of varchar(max) in MySQL?

database Solved
DA
asked 1 month ago by David Basarab
0 votes
1 ans
3 views
Is there a REAL performance difference between INT and VARCHAR primary keys?

Is there a measurable performance difference between using INT vs. VARCHAR as a primary key in MySQL? I'd like to use VARCHAR as the primary key for referen...

database Solved
JA
asked 1 month ago by Jake McGraw
0 votes
1 ans
3 views
MySQL root password change

I have been trying to reset my MySQL root password. I have run `mysqld_safe --skip-grant-tables`, updated the root password, and checked the user table to make...

database Solved
NI
asked 1 month ago by nick
0 votes
1 ans
3 views
Access denied for user 'root@localhost' (using password:NO)

I'm trying to run WordPress in my Windows desktop and it needs MySQL. I install everything with `Web Platform Installer` which is provided by Microsoft....

general-dev Solved
NA
asked 1 month ago by Nasser Hadjloo
0 votes
1 ans
3 views
Maximum number of records in a MySQL database table

What is the upper limit of records for MySQL database table. I'm wondering about autoincrement field. What would happen if I add milions of records? How to...

database Solved
XP
asked 1 month ago by xpepermint
0 votes
1 ans
3 views
MySQL procedure vs function, which would I use when?

I'm looking at MySQL procedures and functions. What is the real difference? They seem to be similar, but a function has more limitations. I'm lik...

database Solved
AN
asked 1 month ago by Anonym
0 votes
1 ans
3 views
DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled

While importing the database in mysql, I have got following error: > 1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS...

database Solved
AS
asked 1 month ago by ASR
0 votes
1 ans
3 views
How to store arrays in MySQL?

I have two tables in MySQL. Table Person has the following columns: id | name | fruits ---|------|------- The `fruits` column may hold null or an array o...

database Solved
TO
asked 1 month ago by tonga
0 votes
1 ans
3 views
MySQLDump one INSERT statement for each data row

with the following statement: mysqldump --complete-insert --lock-all-tables --no-create-db --no-create-info --extended-insert --password=XXX -u...

database Solved
RE
asked 1 month ago by rexford
0 votes
1 ans
3 views
Mysql command not found in OS X 10.7

I cant get my mysql to start on os x 10.7. It is located in `/usr/local/mysql/bin/mysql` I get command not found when I type `mysql --version` in the termi...

database Solved
SI
asked 1 month ago by SilverNightaFall
0 votes
1 ans
3 views
What resources exist for Database performance-tuning?

What good resources exist for understanding database tuning on the major engines and advancing your knowledge in that area? The idea of this question is to c...

database Solved
GA
asked 1 month ago by Gavin Miller
0 votes
1 ans
3 views
1030 Got error 28 from storage engine

I am working on a project where i need to create a database with 300 tables for each user who wants to see the demo application. it was working fine but today w...

general-dev Solved
SC
asked 1 month ago by ScoRpion
0 votes
2 ans
3 views
Set NOW() as Default Value for datetime datatype?

I have two columns in table users namely `registerDate and lastVisitDate` which consist of datetime data type. I would like to do the following. 1. Set regi...

general-dev Solved
IB
asked 1 month ago by Ibrahim Azhar Armar
0 votes
1 ans
3 views
How to do a batch insert in MySQL

I have 1-many number of records that need to be entered into a table. What is the best way to do this in a query? Should I just make a loop and insert one rec...

database Solved
GE
asked 1 month ago by Genadinik