LMSouq

Knowledge Base

Browse Moodle Solutions

2108 solutions found

Page 38 of 106
0 votes
1 ans
3 views
Table 'performance_schema.session_variables' doesn't exist

After upgrading MySQL to 5.7.8-rc and loging to server I got error: Table 'performance_schema.session_variables' doesn't exist I can&#39...

general-dev Solved
TA
asked 1 month ago by Taz
0 votes
1 ans
3 views
What MySQL data type should be used for Latitude/Longitude with 8 decimal places?

I'm working with map data, and the `Latitude/Longitude` extends to 8 decimal places. For example: Latitude 40.71727401 Longitude -74.00898606...

database Solved
ED
asked 1 month ago by Edward
0 votes
1 ans
3 views
How to copy a row and insert in same table with a autoincrement field in MySQL?

In MySQL I am trying to copy a row with an **autoincrement** `column ID=1` and **insert** the data into same table as a new row with `column ID=2`. How can I...

database Solved
NA
asked 1 month ago by Navdroid
0 votes
1 ans
3 views
MySQL SELECT only not null values

Is it possible to do a select statement that takes only NOT NULL values? Right now I am using this: SELECT * FROM table And then I have to filter o...

database Solved
BR
asked 1 month ago by bryan sammon
0 votes
1 ans
3 views
MySQL server startup error 'The server quit without updating PID file'

On [Mac OS X v10.6][1] (Snow Leopard), starting MySQL gives the following error: > The server quit without updating PID file ### File *my.cnf* ### `...

server-admin Solved
CH
asked 1 month ago by Chinmay
0 votes
1 ans
3 views
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

I'm working on getting my database to talk to my Java programs. Can someone give me a quick and dirty sample program using the JDBC? I'm getting a...

database Solved
JO
asked 1 month ago by Josh K
0 votes
1 ans
3 views
Comparison of full text search engine - Lucene, Sphinx, Postgresql, MySQL?

I'm building a Django site and I am looking for a search engine. A few candidates: - Lucene/Lucene with Compass/Solr - Sphinx - Postgresql built...

database Solved
CO
asked 1 month ago by Continuation
0 votes
1 ans
3 views
What's faster, SELECT DISTINCT or GROUP BY in MySQL?

If I have a table CREATE TABLE users ( id int(10) unsigned NOT NULL auto_increment, name varchar(255) NOT NULL, profession varchar(2...

database Solved
VA
asked 1 month ago by vava
0 votes
1 ans
3 views
JSON encode MySQL results

How do I use the `json_encode()` function with MySQL query results? Do I need to iterate through the rows or can I just apply it to the entire results object?

database Solved
TR
asked 1 month ago by Trick Jarrett
0 votes
1 ans
3 views
MySQL: selecting rows where a column is null

I'm having a problem where when I try to select the rows that have a NULL for a certain column, it returns an empty set. However, when I look at the table i...

database Solved
TH
asked 1 month ago by The.Anti.9
0 votes
1 ans
3 views
What data type to use for hashed password field and what length?

I'm not sure how password hashing works (will be implementing it later), but need to create database schema now. I'm thinking of limiting passwords t...

general-dev Solved
Z-
asked 1 month ago by z-boss
0 votes
1 ans
3 views
MySQL show status - active or total connections?

When I run `show status like 'Con%'` it shows the number of connections, which is 9972 and constantly growing. Is this an active number of connections o...

database Solved
MI
asked 1 month ago by Michael
0 votes
1 ans
3 views
How can I modify the size of column in a MySQL table?

I have created a table and accidentally put `varchar` length as `300` instead of `65353`. How can I fix that? An example would be appreciated.

database Solved
VE
asked 1 month ago by vehomzzz
0 votes
1 ans
3 views
Change auto increment starting number?

In MySQL, I have a table, and I want to set the `auto_increment` value to `5` instead of `1`. Is this possible and what query statement does this?

general-dev Solved
JO
asked 1 month ago by John Jones
0 votes
1 ans
3 views
How to enable MySQL Query Log?

How do I enable the MySQL function that logs each SQL query statement received from clients and the time that query statement has submitted? Can I do that in p...

database Solved
FE
asked 1 month ago by Feng-Chun Ting
0 votes
1 ans
3 views
How do I get the current time zone of MySQL?

Does anyone know if there is a function to obtain the server's time zone setting in MySQL? **UPDATE** This doesn't output any valid info:...

database Solved
US
asked 1 month ago by user198729
0 votes
1 ans
3 views
How to store Emoji Character in MySQL Database

I have a MySQL database configured with the default collation `utf8mb4_general_ci`. When I try to insert a row containing an emoji character in the text using t...

database Solved
SE
asked 1 month ago by Selvamani P
0 votes
1 ans
3 views
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

I am getting the following error when I try to connect to mysql: `Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...

server-admin Solved
AT
asked 1 month ago by Atul
0 votes
1 ans
3 views
Your password does not satisfy the current policy requirements

I want to create a new user in MySQL with the syntax: create user 'demo'@'localhost' identified by 'password'; But it returns...

general-dev Solved
NG
asked 1 month ago by Nguyen
0 votes
1 ans
3 views
Access mysql remote database from command line

I have a server with Rackspace. I want to access the database from my local machine command line. I tried like: mysql -u username -h my.application.com -p...

database Solved
US
asked 1 month ago by user1986299