尝试通过MacBook上的XAMPP解决MySQL错误。所有的教程和链接在线适用于Windows
我正在尝试解决每次尝试在浏览器上访问“ localhost/phpmyadmin”时收到的多个错误。
我正在使用XAMPP访问MySQL,以供我开发的WebApp。我有点新手,并且对为什么会发生这种情况非常困惑,因为它最初使我能够创建一个数据库,但突然被锁定了吗?
太令人沮丧了。
我已经附加了我收到的错误以及我的代码外观的图片。
请帮助我!
代码在这里:
const express = require('express');
const app = express();
const cors = require('cors');
const dotenv = require('dotenv');
const { response } = require('express');
dotenv.config();
app.use(cors());
app.use(express.json());
app.use(express.urlencoded({extended:false}));
// create
app.post('/insert', (request, response) => {
});
// read
app.get('/getAll',(request,response) => {
response.json({
success: true
});
})
// update
// delete
app.listen(process.env.PORT, () => console.log('App is Running!'));
I am trying to solve multiple errors that I receive everytime I try to access "localhost/phpmyadmin" on my browser.
I am using XAMPP to access MySql for a webapp that I am developing for fun. I am kinda new to this and am extremely confused as to why this is happening, as it initally allowed me to create a database but I am suddenly locked out?
It's so frustrating.
I've attached a picture of the error I am receiving and also what my code looks like.
Please help me!!
The code is here:
const express = require('express');
const app = express();
const cors = require('cors');
const dotenv = require('dotenv');
const { response } = require('express');
dotenv.config();
app.use(cors());
app.use(express.json());
app.use(express.urlencoded({extended:false}));
// create
app.post('/insert', (request, response) => {
});
// read
app.get('/getAll',(request,response) => {
response.json({
success: true
});
})
// update
// delete
app.listen(process.env.PORT, () => console.log('App is Running!'));
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论