https://github.com/jamesql/cplusplus-base-login
Basic Login Base w/ C++ & MySQL
https://github.com/jamesql/cplusplus-base-login
cplusplus encryption gui ide mysql qt qt5-gui sha256 sql
Last synced: about 2 months ago
JSON representation
Basic Login Base w/ C++ & MySQL
- Host: GitHub
- URL: https://github.com/jamesql/cplusplus-base-login
- Owner: jamesql
- Created: 2019-09-11T19:28:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-14T21:44:55.000Z (almost 7 years ago)
- Last Synced: 2025-04-03T07:39:36.604Z (about 1 year ago)
- Topics: cplusplus, encryption, gui, ide, mysql, qt, qt5-gui, sha256, sql
- Language: C++
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Login Client in C++ w/ Qt 5
Basic Login Base w/ C++ & MySQL
# Where to get MySQL Connecter 8 for C++?
- [Click Here!](https://dev.mysql.com/doc/connector-cpp/8.0/en/)
# Connection String
```cpp
"tcp://127.0.0.1:3306", "root", "Password"
```
# Database File (MySQL)
```sql
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.7.18-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for cpptest
CREATE DATABASE IF NOT EXISTS `cpptest` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `cpptest`;
-- Dumping structure for table cpptest.user
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`un` varchar(50) NOT NULL DEFAULT '0',
`password` varchar(999) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
```
# Convert glob -> std::string function
```cpp
std::string gulp(std::istream *in)
{
std::string ret;
char buffer[4096];
while (in->read(buffer, sizeof(buffer)))
ret.append(buffer, sizeof(buffer));
ret.append(buffer, in->gcount());
return ret;
}
```
# Images
