Relative Content

Tag Archive for mysqlspring-boot

error no 2002 can’t connect to Mysql server on 43.231.78.77 (10061) [duplicate]

This question already has answers here: Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003) [closed] (10 answers) Closed 51 secs ago. Trying to connect the MySQL server with Spring boot application but failed. Can anyone tell what is wrong with the below code. Tried with the SQLYog to establish the connection with the IP […]

Spring Boot application fail while init

Annotation-specified bean name ‘personDAO’ for bean class [com.gmail.tihamer.rozman.demo.PersonDAO] conflicts with existing, non-compatible bean definition of same name and class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]

is it correct way to use my-sql stored procedure query conditional way

DELIMITER // CREATE PROCEDURE microservices.AddColumnsIfNotExists() BEGIN DECLARE user_name_exists INT DEFAULT 0; DECLARE account_exists INT DEFAULT 0; — Check if the column ‘user_name’ exists SELECT COUNT(*) INTO user_name_exists FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = SCHEMA() AND TABLE_NAME = ‘user’ AND COLUMN_NAME = ‘user_name’; — Check if the column ‘account’ exists SELECT COUNT(*) INTO account_exists FROM INFORMATION_SCHEMA.COLUMNS WHERE […]