Possible to use mysql database?

NodeBB Development

Suggested Topics


  • 1 Votes
    9 Posts
    1k Views

    @scottalanmiller So unfortunately none of the versions worked with our database any more. We even tried 1.11.2 and went back to 1.10.2 on mongodb 3.2 as well.

    Now, we've updated mongodb to 3.4 and picked up an old database backup to migrate from 3.2 to 3.4 on the latest nodebb (1.11.2). Its working properly now.

    However, a warning for people on older versions of mongodb when updating to 1.11.x onward.

  • 0 Votes
    5 Posts
    1k Views

    @julian Thanks!

    umm.. I did insert data menually in database.
    like this,
    db.objects.insert({
    ... "_key" : "user:6",
    ... "username" : "test2",
    ... "userslug" : "test2",
    ... "email" : "[email protected]",
    ... "joindate" : 1525421227139.0,
    ... "lastonline" : 1525421227139.0,
    ... "picture" : "",
    ... "fullname" : "",
    ... "location" : "",
    ... "birthday" : "",
    ... "website" : "",
    ... "signature" : "",
    ... "uploadedpicture" : "",
    ... "profileviews" : 0,
    ... "reputation" : 0,
    ... "postcount" : 0,
    ... "topiccount" : 0,
    ... "lastposttime" : 0,
    ... "banned" : 0,
    ... "status" : "online",
    ... "uid" : 6,
    ... "password" : "$2a$12$buM7xOHIJdy.RK.eTmBph.EzPAIirzTjjDsLHjG/Y7Ogs0CvQlZES",
    ... "passwordExpiry" : 0
    ... })

    but I can't login to my nodebb project. That appear 403 error.
    Do you know why?

    sorry, I can't speak english well.

  • 0 Votes
    7 Posts
    2k Views

    @pichalite Sigh alright, thanks for the help.

  • 0 Votes
    2 Posts
    1k Views

    Hmm, idk, some parts of the code could use better adherence to a style for consistency, and it may encourage new contributors.

    I feel like styles are largely based on opinion though. And in situations where a style does help, such as avoiding confusing/ambiguous expressions, NodeBB rarely suffers from these problems.

    I am against tabs though. I hate them. Used to love them, but after using spaces, i can never go back. (I really really hate semicolons too.)

  • 0 Votes
    4 Posts
    2k Views

    I restarted nginx, and do so whenever I try to make changes, but it's not working... Is something like this valid? I made sure the file in sites-available and sites-enabled are linked.

    upstream io_nodes { ip_hash; server 127.0.0.1:4567; } server { listen 80; server_name forums.violetcomics.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_redirect off; # Socket.io Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; gzip on; gzip_min_length 1000; gzip_proxied off; gzip_types text/plain application/xml application/x-javascript text/css application/json; location @nodebb { proxy_pass http://io_nodes; } location ~ ^/(images|language|sounds|templates|uploads|vendor|src\/modules|nodebb\.min\.js|stylesheet\.css|admin\.css) { root /path/to/nodebb/public/; try_files $uri $uri/ @nodebb; } location / { proxy_pass http://io_nodes; } }

    Edit: Error came back. @_@ I'll get back to it later.