LMSouq

Knowledge Base

Browse Moodle Solutions

Clear

378 solutions found in general-dev

Page 9 of 19
0 votes
1 ans
3 views
Using env variable in Spring Boot's application.properties

We are working on a Spring Boot web application, and the database we are using is MySQL; * the setup we have is we first test it *locally* (means we need to...

general-dev Solved
EA
asked 1 month ago by Eazy
0 votes
1 ans
3 views
How to get UTF-8 working in Java webapps?

I need to get UTF-8 working in my Java webapp (servlets + JSP, no framework used) to support `äöå` etc. for regular Finnish text and Cyrillic alp...

general-dev Solved
KO
asked 1 month ago by kosoant
0 votes
1 ans
3 views
#1273 – Unknown collation: ‘utf8mb4_unicode_520_ci’

I have a WordPress website on my local **WAMP** server. But when I upload its database to live server, I get error #1273 – Unknown collation: ‘utf8mb4_u...

general-dev Solved
SH
asked 1 month ago by Shishil Patel
0 votes
1 ans
3 views
gem install: Failed to build gem native extension (can't find header files)

I am using Fedora 14 and I have MySQL and MySQL server 5.1.42 installed and running. Now I tried to do this as root user: gem install mysql But I get...

general-dev Solved
TI
asked 1 month ago by Tim
0 votes
1 ans
3 views
Adding multiple columns after a specific column with a single ADD COLUMN statement results in a syntax error

I need to add multiple columns to a table but position the columns **after** a column called `lastname`. I have tried this: ALTER TABLE `users` ADD CO...

general-dev Solved
KO
asked 1 month ago by Koala
0 votes
1 ans
3 views
Getting "Lock wait timeout exceeded; try restarting transaction" even though I'm not using a transaction

I'm running the following MySQL `UPDATE` statement: mysql> update customer set account_import_id = 1; ERROR 1205 (HY000): Lock wait timeout e...

general-dev Solved
JA
asked 1 month ago by Jason Swett
0 votes
1 ans
3 views
How can I search (case-insensitive) in a column using LIKE wildcard?

I looked around some and didn't find what I was after so here goes. SELECT * FROM trees WHERE trees.`title` LIKE '%elm%' This works fine,...

general-dev Solved
DA
asked 1 month ago by David Morrow
0 votes
1 ans
3 views
You can't specify target table for update in FROM clause

I have a simple mysql table: CREATE TABLE IF NOT EXISTS `pers` ( `persID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(35) NOT NULL,...

general-dev Solved
CS
asked 1 month ago by CSchulz
0 votes
1 ans
3 views
ERROR 1396 (HY000): Operation CREATE USER failed for 'jack'@'localhost'

I seem to be unable to re-create a simple user I've deleted, even as root in MySQL. My case: user 'jack' existed before, but I deleted it from my...

general-dev Solved
RU
asked 1 month ago by Russ Bateman
0 votes
1 ans
3 views
'IF' in 'SELECT' statement - choose output value based on column values

SELECT id, amount FROM report I need `amount` to be `amount` if `report.type='P'` and `-amount` if `report.type='N'`. How do I add this t...

general-dev Solved
MI
asked 1 month ago by Michael
0 votes
1 ans
3 views
Authentication plugin 'caching_sha2_password' cannot be loaded

I am connecting MySQL - 8.0 with MySQL Workbench and getting the below error: > Authentication plugin 'caching_sha2_password' cannot be loaded: &...

general-dev Solved
AM
asked 1 month ago by Aman Aggarwal
0 votes
2 ans
3 views
Export schema without data

I'm using a MySql database with a Java program, now I want to give the program to somebody else. How to export the MySQL database structure without the d...

general-dev Solved
DA
asked 1 month ago by Darth Blue Ray
0 votes
1 ans
3 views
ERROR 1698 (28000): Access denied for user 'root'@'localhost'

I'm setting up a new server and keep running into this problem. When I try to log into the MySQL database with the root user, I get the error: > ER...

general-dev Solved
FO
asked 1 month ago by Folkmann
0 votes
1 ans
3 views
Create a temporary table in a SELECT statement without a separate CREATE TABLE

Is it possible to create a temporary (session only) table from a select statement without using a create table statement and specifying each column type? I know...

general-dev Solved
70
asked 1 month ago by 700 Software
0 votes
1 ans
3 views
Restrict results to top N rows per group

The following query: ``` SELECT year, id, rate FROM h WHERE year BETWEEN 2000 AND 2009 ORDER BY id, rate DESC ``` yields: ``` year | id | r...

general-dev Solved
WE
asked 1 month ago by Wells
0 votes
1 ans
3 views
What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN?

What's the difference between `INNER JOIN`, `LEFT JOIN`, `RIGHT JOIN` and `FULL JOIN` in ***MySQL***?

general-dev Solved
LI
asked 1 month ago by Lion King
0 votes
1 ans
3 views
Disable ONLY_FULL_GROUP_BY

I accidentally enabled **ONLY_FULL_GROUP_BY** mode like this: SET sql_mode = 'ONLY_FULL_GROUP_BY'; How do I disable it?

general-dev Solved
ZV
asked 1 month ago by ZviBar
0 votes
1 ans
3 views
GPG error "Not enough random bytes available. Please do some other work to give the OS a chance to collect more"

I am using: gpg --gen-key Is there a better way to create a PGP key? What does this program want? A fully slammed server? > Not enough random b...

general-dev Solved
TA
asked 1 month ago by Tampa
0 votes
1 ans
3 views
Is it possible to use GitHub and GitLab on one machine?

I have accounts in **GitHub** and **GitLab**. I generated and added an RSA key to my account in **GitLab**, but now I need to work with **GitHub** on a second p...

general-dev Solved
UL
asked 1 month ago by Uladz Kha
0 votes
1 ans
3 views
Error running basic tensorflow example

I have just reinstalled latest tensorflow on ubuntu: $ sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp...

general-dev Solved
WE
asked 1 month ago by WestCoastProjects